File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ use cases that require additional features:
180
180
can encapsulate ` i32 ` pointers to linear memory allocations that need to be
181
181
safely freed when the last handle goes away.
182
182
3 . Developers import or export functions with signatures containing
183
- concurrency-oriented types (e.g., async, future and stream) to address
183
+ concurrency-oriented types (e.g., future and stream) to address
184
184
concurrency use cases like non-blocking I/O, early return and streaming. Both
185
185
developers (the caller and callee) are able to use their respective languages'
186
186
native concurrency support, if it exists, using the concurrency-oriented types
Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ keyword ::= 'use'
110
110
| 'static'
111
111
| 'interface'
112
112
| 'tuple'
113
- | 'async'
114
113
| 'future'
115
114
| 'stream'
116
115
```
@@ -336,19 +335,17 @@ union-cases ::= ty,
336
335
## Item: ` func `
337
336
338
337
Functions can also be defined in a ` wit ` document. Functions have a name,
339
- parameters, and results. Functions can optionally also be declared as ` async `
340
- functions.
338
+ parameters, and results.
341
339
342
340
``` wit
343
341
thunk: func() -> ()
344
342
fibonacci: func(n: u32) -> u32
345
- sleep: async func(ms: u64) -> ()
346
343
```
347
344
348
345
Specifically functions have the structure:
349
346
350
347
``` wit
351
- func-item ::= id ':' 'async'? ' func' func-vec '->' func-vec
348
+ func-item ::= id ':' 'func' func-vec '->' func-vec
352
349
353
350
func-vec ::= ty
354
351
| '(' func-named-type-list ')'
@@ -377,7 +374,7 @@ resource file-descriptor
377
374
resource request {
378
375
static new: func() -> request
379
376
380
- body: async func() -> list<u8>
377
+ body: func() -> future< list<u8> >
381
378
headers: func() -> list<string>
382
379
}
383
380
```
You can’t perform that action at this time.
0 commit comments