@bytecodealliance/preview2-shim 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +0,0 @@
1
- export namespace WasiPollPoll {
2
- /**
3
- * Dispose of the specified `pollable`, after which it may no longer
4
- * be used.
5
- */
6
- export function dropPollable(this_: Pollable): void;
7
- /**
8
- * Poll for completion on a set of pollables.
9
- *
10
- * The "oneoff" in the name refers to the fact that this function must do a
11
- * linear scan through the entire list of subscriptions, which may be
12
- * inefficient if the number is large and the same subscriptions are used
13
- * many times. In the future, this is expected to be obsoleted by the
14
- * component model async proposal, which will include a scalable waiting
15
- * facility.
16
- *
17
- * The result list<bool> is the same length as the argument
18
- * list<pollable>, and indicates the readiness of each corresponding
19
- * element in that / list, with true indicating ready.
20
- */
21
- export function pollOneoff(in_: Uint32Array): boolean[];
22
- }
23
- /**
24
- * A "pollable" handle.
25
- *
26
- * This is conceptually represents a `stream<_, _>`, or in other words,
27
- * a stream that one can wait on, repeatedly, but which does not itself
28
- * produce any data. It's temporary scaffolding until component-model's
29
- * async features are ready.
30
- *
31
- * And at present, it is a `u32` instead of being an actual handle, until
32
- * the wit-bindgen implementation of handles and resources is ready.
33
- *
34
- * `pollable` lifetimes are not automatically managed. Users must ensure
35
- * that they do not outlive the resource they reference.
36
- *
37
- * This [represents a resource](https://github.com/WebAssembly/WASI/blob/main/docs/WitInWasi.md#Resources).
38
- */
39
- export type Pollable = number;