Skip to content

Commit 2afd9ea

Browse files
mwaskommodal-bot
authored andcommitted
Add Function guide (#53424)
GitOrigin-RevId: 629812c750c98485c3ec5ae114d77992395f69b3
1 parent 83bb7aa commit 2afd9ea

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

go/modal_docs/intro.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ if !ok {
142142
fmt.Println(response)
143143
```
144144

145-
All Function invocation methods are available:
145+
Synchronous and asynchronous [invocation methods](/docs/guide/function-invocation-methods) are both supported:
146146

147147
```go
148148
fc, err := f.Spawn(ctx, []any{"Hello, Modal!"}, nil)
@@ -157,6 +157,8 @@ if err != nil {
157157
fmt.Println(result)
158158
```
159159

160+
Batched invocation is not currently supported from the Go SDK.
161+
160162
## Errors
161163

162164
Error types are documented on the [Errors](/docs/sdk/go/latest/Errors) page. Errors are returned as values and implement the standard `error` interface; use `errors.As` to match them.

js/modal_docs/intro.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,16 @@ ret = await echo.remote([], { s: "Hello, Modal!" });
108108
console.log(ret);
109109
```
110110

111-
All Function invocation methods are available:
111+
Synchronous and asynchronous [invocation methods](/docs/guide/function-invocation-methods) are both supported:
112112

113113
```typescript
114114
const functionCall = await echo.spawn(["Hello, Modal!"]);
115115
const ret = await functionCall.get();
116116
console.log(ret);
117117
```
118118

119+
Batched invocation is not currently supported from the JS SDK.
120+
119121
## Errors
120122

121123
Error types are documented on the [Errors](/docs/sdk/js/latest/Errors) page. Methods throw typed error classes; use `instanceof` to match them.

0 commit comments

Comments
 (0)