diff --git a/imports.md b/imports.md index 49a15d2..9fbc19d 100644 --- a/imports.md +++ b/imports.md @@ -4,21 +4,21 @@ It is intended to be included in other worlds.

-

Import interface wasi:io/poll@0.2.7

+

Import interface wasi:io/poll@0.2.8

A poll API intended to let users wait for I/O events on multiple handles at once.


@@ -71,7 +71,7 @@ being ready for I/O.

-

Import interface wasi:clocks/monotonic-clock@0.2.7

+

Import interface wasi:clocks/monotonic-clock@0.2.8

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 @@ -83,8 +83,8 @@ successive reads of the clock will produce non-decreasing values.

type pollable

pollable

-#### `type instant` -`u64` +

type instant

+

u64

An instant in time, in nanoseconds. An instant is relative to an unspecified initial value, and can only be compared to instances from the same monotonic-clock. @@ -97,6 +97,10 @@ the same monotonic-clock.

Read the current value of the clock.

The clock is monotonic, therefore calling this function repeatedly will produce a sequence of non-decreasing values.

+

For completeness, this function traps if it's not possible to represent +the value of the clock in an instant. Consequently, implementations +should ensure that the starting time is low enough to avoid the +possibility of overflow in practice.

Return values
-

Import interface wasi:random/random@0.2.7

+

Import interface wasi:random/random@0.2.8

WASI Random is a random data API.

It is intended to be portable at least between Unix-family platforms and Windows.

@@ -204,7 +208,7 @@ represented as a u64.

-

Import interface wasi:io/error@0.2.7

+

Import interface wasi:io/error@0.2.8


Types

resource error

@@ -237,7 +241,7 @@ hazard.

-

Import interface wasi:io/streams@0.2.7

+

Import interface wasi:io/streams@0.2.8

WASI I/O is an I/O abstraction API which is currently focused on providing stream types.

In the future, the component model is expected to add built-in stream types; @@ -247,10 +251,10 @@ when it does, they are expected to subsume this API.

type error

error

-#### `type pollable` -[`pollable`](#pollable) +

type pollable

+

pollable

-#### `variant stream-error` +

variant stream-error

An error for input-stream and output-stream operations.

Variant Cases