|
53 | 53 | (export "context.set" (func $context.set)) |
54 | 54 | (export "context.get" (func $context.get)) |
55 | 55 | )))) |
56 | | - (func (export "blocking-call") (result u32) (canon lift |
| 56 | + (func (export "blocking-call") async (result u32) (canon lift |
57 | 57 | (core func $core_async_inner "blocking-call") |
58 | 58 | async (callback (func $core_async_inner "blocking-call-cb")) |
59 | 59 | )) |
60 | | - (func (export "unblock") (canon lift |
| 60 | + (func (export "unblock") async (canon lift |
61 | 61 | (core func $core_async_inner "unblock") |
62 | 62 | async (callback (func $core_async_inner "unblock-cb")) |
63 | 63 | )) |
64 | 64 | ) |
65 | 65 |
|
66 | 66 | (component $SyncMiddle |
67 | | - (import "blocking-call" (func $blocking-call (result u32))) |
| 67 | + (import "blocking-call" (func $blocking-call async (result u32))) |
68 | 68 | (core module $CoreSyncMiddle |
69 | 69 | (import "" "blocking-call" (func $blocking-call (result i32))) |
70 | 70 | (func $sync-func (export "sync-func") (result i32) |
|
75 | 75 | (core instance $core_sync_middle (instantiate $CoreSyncMiddle (with "" (instance |
76 | 76 | (export "blocking-call" (func $blocking-call')) |
77 | 77 | )))) |
78 | | - (func (export "sync-func") (result u32) (canon lift |
| 78 | + (func (export "sync-func") async (result u32) (canon lift |
79 | 79 | (core func $core_sync_middle "sync-func") |
80 | 80 | )) |
81 | 81 | ) |
82 | 82 |
|
83 | 83 | (component $AsyncMiddle |
84 | | - (import "blocking-call" (func $blocking-call (result u32))) |
| 84 | + (import "blocking-call" (func $blocking-call async (result u32))) |
85 | 85 | (core module $CoreSyncMiddle |
86 | 86 | (import "" "task.return" (func $task.return (param i32))) |
87 | 87 | (import "" "blocking-call" (func $blocking-call (result i32))) |
|
99 | 99 | (export "task.return" (func $task.return)) |
100 | 100 | (export "blocking-call" (func $blocking-call')) |
101 | 101 | )))) |
102 | | - (func (export "sync-func") (result u32) (canon lift |
| 102 | + (func (export "sync-func") async (result u32) (canon lift |
103 | 103 | (core func $core_sync_middle "sync-func") |
104 | 104 | async (callback (func $core_sync_middle "sync-func-cb")) |
105 | 105 | )) |
106 | 106 | ) |
107 | 107 |
|
108 | 108 | (component $AsyncOuter |
109 | | - (import "unblock" (func $unblock)) |
110 | | - (import "sync-func1" (func $sync-func1 (result u32))) |
111 | | - (import "sync-func2" (func $sync-func2 (result u32))) |
| 109 | + (import "unblock" (func $unblock async)) |
| 110 | + (import "sync-func1" (func $sync-func1 async (result u32))) |
| 111 | + (import "sync-func2" (func $sync-func2 async (result u32))) |
112 | 112 |
|
113 | 113 | (core module $Memory (memory (export "mem") 1)) |
114 | 114 | (core instance $memory (instantiate $Memory)) |
|
219 | 219 | (export "sync-func1" (func $sync-func1')) |
220 | 220 | (export "sync-func2" (func $sync-func2')) |
221 | 221 | )))) |
222 | | - (func (export "run") (result u32) (canon lift |
| 222 | + (func (export "run") async (result u32) (canon lift |
223 | 223 | (core func $em "run") |
224 | 224 | async (callback (func $em "run-cb")) |
225 | 225 | )) |
|
0 commit comments