Skip to content

Commit 3ee3b98

Browse files
authored
Merge pull request #98 from sunfishcode/main
Remove the `async` keyword from WIT.md.
2 parents 3611a1c + 0caf4a0 commit 3ee3b98

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

design/high-level/UseCases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ use cases that require additional features:
180180
can encapsulate `i32` pointers to linear memory allocations that need to be
181181
safely freed when the last handle goes away.
182182
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
184184
concurrency use cases like non-blocking I/O, early return and streaming. Both
185185
developers (the caller and callee) are able to use their respective languages'
186186
native concurrency support, if it exists, using the concurrency-oriented types

design/mvp/WIT.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ keyword ::= 'use'
110110
| 'static'
111111
| 'interface'
112112
| 'tuple'
113-
| 'async'
114113
| 'future'
115114
| 'stream'
116115
```
@@ -336,19 +335,17 @@ union-cases ::= ty,
336335
## Item: `func`
337336

338337
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.
341339

342340
```wit
343341
thunk: func() -> ()
344342
fibonacci: func(n: u32) -> u32
345-
sleep: async func(ms: u64) -> ()
346343
```
347344

348345
Specifically functions have the structure:
349346

350347
```wit
351-
func-item ::= id ':' 'async'? 'func' func-vec '->' func-vec
348+
func-item ::= id ':' 'func' func-vec '->' func-vec
352349
353350
func-vec ::= ty
354351
| '(' func-named-type-list ')'
@@ -377,7 +374,7 @@ resource file-descriptor
377374
resource request {
378375
static new: func() -> request
379376
380-
body: async func() -> list<u8>
377+
body: func() -> future<list<u8>>
381378
headers: func() -> list<string>
382379
}
383380
```

0 commit comments

Comments
 (0)