From 2b3436048df360dbcf2375b9302a202152f69dd0 Mon Sep 17 00:00:00 2001
From: Colin Murphy A poll API intended to let users wait for I/O events on multiple handles
at once.
-
-
wasi:io/poll@0.2.0
wasi:clocks/monotonic-clock@0.2.1-draft
wasi:clocks/wall-clock@0.2.1-draft
wasi:clocks/timezone@0.2.1-draft
wasi:io/poll@0.2.0
wasi:clocks/monotonic-clock@0.2.0
wasi:clocks/wall-clock@0.2.0
wasi:clocks/timezone@0.2.0
Import interface wasi:io/poll@0.2.0
+Import interface wasi:io/poll@0.2.0
@@ -17,25 +17,25 @@ at once.
resource pollable
pollable
represents a single I/O event which may be ready, or not.[method]pollable.ready: func
[method]pollable.ready: func
Return the readiness of a pollable. This function never blocks.
Returns true
when the pollable is ready, and false
otherwise.
[method]pollable.block: func
[method]pollable.block: func
block
returns immediately if the pollable is ready, and otherwise
blocks until ready.
This function is equivalent to calling poll.poll
on a list
containing only this pollable.
poll: func
Poll for completion on a set of pollables.
@@ -59,7 +59,7 @@ being reaedy for I/O. -WASI Monotonic Clock is a clock API intended to let users measure elapsed time.
It is intended to be portable at least between Unix-family platforms and @@ -120,7 +120,7 @@ occured.
pollable
>WASI Wall Clock is a clock API intended to let users query the current time. The name "wall" makes an analogy to a "clock on the wall", which is not necessarily monotonic as it may be reset.
@@ -161,7 +161,7 @@ also known as Unix Time. -type datetime