1;;! component_model_async = true
2
3;; backpressure.inc
4(component
5  (core module $m
6    (import "" "backpressure.inc" (func $backpressure-inc))
7  )
8  (core func $backpressure-inc (canon backpressure.inc))
9  (core instance $i (instantiate $m (with "" (instance (export "backpressure.inc" (func $backpressure-inc))))))
10)
11
12;; backpressure.dec
13(component
14  (core module $m
15    (import "" "backpressure.dec" (func $backpressure-dec))
16  )
17  (core func $backpressure-dec (canon backpressure.dec))
18  (core instance $i (instantiate $m (with "" (instance (export "backpressure.dec" (func $backpressure-dec))))))
19)
20
21;; task.return
22(component
23  (core module $m
24    (import "" "task.return" (func $task-return (param i32)))
25  )
26  (core func $task-return (canon task.return (result u32)))
27  (core instance $i (instantiate $m (with "" (instance (export "task.return" (func $task-return))))))
28)
29
30;; waitable-set.wait
31(component
32  (core module $libc (memory (export "memory") 1))
33  (core instance $libc (instantiate $libc))
34  (core module $m
35    (import "" "waitable-set.wait" (func $waitable-set-wait (param i32 i32) (result i32)))
36  )
37  (core func $waitable-set-wait (canon waitable-set.wait (memory $libc "memory")))
38  (core instance $i (instantiate $m (with "" (instance (export "waitable-set.wait" (func $waitable-set-wait))))))
39)
40
41;; waitable-set.poll
42(component
43  (core module $libc (memory (export "memory") 1))
44  (core instance $libc (instantiate $libc))
45  (core module $m
46    (import "" "waitable-set.poll" (func $waitable-set-poll (param i32 i32) (result i32)))
47  )
48  (core func $waitable-set-poll (canon waitable-set.poll (memory $libc "memory")))
49  (core instance $i (instantiate $m (with "" (instance (export "waitable-set.poll" (func $waitable-set-poll))))))
50)
51
52;; thread.yield
53(component
54  (core module $m
55    (import "" "thread.yield" (func $thread-yield (result i32)))
56  )
57  (core func $thread-yield (canon thread.yield))
58  (core instance $i (instantiate $m (with "" (instance (export "thread.yield" (func $thread-yield))))))
59)
60
61;; subtask.drop
62(component
63  (core module $m
64    (import "" "subtask.drop" (func $subtask-drop (param i32)))
65  )
66  (core func $subtask-drop (canon subtask.drop))
67  (core instance $i (instantiate $m (with "" (instance (export "subtask.drop" (func $subtask-drop))))))
68)
69
70;; subtask.cancel
71(component
72  (core module $m
73    (import "" "subtask.cancel" (func $subtask-drop (param i32) (result i32)))
74  )
75  (core func $subtask-cancel (canon subtask.cancel))
76  (core instance $i (instantiate $m (with "" (instance (export "subtask.cancel" (func $subtask-cancel))))))
77)
78