File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ label' ::= len:<u32> l:<label> => l (if len = |l|)
214
214
valtype ::= i:<typeidx> => i
215
215
| pvt:<primvaltype> => pvt
216
216
resourcetype ::= 0x3f 0x7f f?:<funcidx>? => (resource (rep i32) (dtor f)?)
217
- | 0x3e 0x7f f:<funcidx> cb?:<funcidx>? => (resource (rep i32) (dtor async f (callback cb)?))
217
+ | 0x3e 0x7f f:<funcidx> cb?:<funcidx>? => (resource (rep i32) (dtor async f (callback cb)?)) 🚝
218
218
functype ::= 0x40 ps:<paramlist> rs:<resultlist> => (func ps rs)
219
219
paramlist ::= lt*:vec(<labelvaltype>) => (param lt)*
220
220
resultlist ::= 0x00 t:<valtype> => (result t)
@@ -288,7 +288,7 @@ canon ::= 0x00 0x00 f:<core:funcidx> opts:<opts> ft:<typeidx> => (canon lift
288
288
| 0x01 0x00 f:<funcidx> opts:<opts> => (canon lower f opts (core func))
289
289
| 0x02 rt:<typeidx> => (canon resource.new rt (core func))
290
290
| 0x03 rt:<typeidx> => (canon resource.drop rt (core func))
291
- | 0x07 rt:<typeidx> => (canon resource.drop rt async (core func)) 🔀
291
+ | 0x07 rt:<typeidx> => (canon resource.drop rt async (core func)) 🚝
292
292
| 0x04 rt:<typeidx> => (canon resource.rep rt (core func))
293
293
| 0x08 => (canon backpressure.set (core func)) 🔀
294
294
| 0x09 rs:<resultlist> opts:<opts> => (canon task.return rs opts (core func)) 🔀
Original file line number Diff line number Diff line change @@ -566,7 +566,8 @@ defvaltype ::= bool
566
566
| (future <typeidx>?) 🔀
567
567
valtype ::= <typeidx>
568
568
| <defvaltype>
569
- resourcetype ::= (resource (rep i32) (dtor async? <funcidx> (callback <funcidx>)?)?)
569
+ resourcetype ::= (resource (rep i32) (dtor <funcidx>)?)
570
+ | (resource (rep i32) (dtor async <funcidx> (callback <funcidx>)?)?) 🚝
570
571
functype ::= (func (param "<label>" <valtype>)* (result <valtype>)?)
571
572
componenttype ::= (component <componentdecl>*)
572
573
instancetype ::= (instance <instancedecl>*)
@@ -1411,7 +1412,8 @@ dynamically interact with Canonical ABI entities like resources,
1411
1412
``` ebnf
1412
1413
canon ::= ...
1413
1414
| (canon resource.new <typeidx> (core func <id>?))
1414
- | (canon resource.drop <typeidx> async? (core func <id>?))
1415
+ | (canon resource.drop <typeidx> (core func <id>?))
1416
+ | (canon resource.drop <typeidx> async (core func <id>?)) 🚝
1415
1417
| (canon resource.rep <typeidx> (core func <id>?))
1416
1418
| (canon context.get <valtype> <u32> (core func <id>?)) 🔀
1417
1419
| (canon context.set <valtype> <u32> (core func <id>?)) 🔀
@@ -1478,7 +1480,7 @@ When the `async` immediate is false:
1478
1480
| Approximate WIT signature | ` func<T>(t: T) ` |
1479
1481
| Canonical ABI signature | ` [t:i32] -> [] ` |
1480
1482
1481
- When the ` async ` immediate is true:
1483
+ 🚝 When the ` async ` immediate is true:
1482
1484
1483
1485
| Synopsis | |
1484
1486
| -------------------------- | ---------------------------------- |
You can’t perform that action at this time.
0 commit comments