From 2b3436048df360dbcf2375b9302a202152f69dd0 Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Fri, 31 May 2024 11:04:02 -0400 Subject: [PATCH] Generate docs. --- README.md | 2 +- imports.md | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 7191f4f..cb92dcc 100644 --- a/README.md +++ b/README.md @@ -141,5 +141,5 @@ Many thanks for valuable feedback and advice from: The file `imports.md` is generated using [wit-bindgen](https://github.com/bytecodealliance/wit-bindgen). ```bash -wit-bindgen markdown wit --html-in-md +wit-bindgen markdown wit --html-in-md --features clocks-timezone ``` diff --git a/imports.md b/imports.md index eddfa84..022e991 100644 --- a/imports.md +++ b/imports.md @@ -2,14 +2,14 @@ -

Import interface wasi:io/poll@0.2.0

+

Import interface wasi:io/poll@0.2.0

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


@@ -17,25 +17,25 @@ at once.

resource pollable

pollable represents a single I/O event which may be ready, or not.

Functions

-

[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.

Params
Return values
-

[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.

Params

poll: func

Poll for completion on a set of pollables.

@@ -59,7 +59,7 @@ being reaedy for I/O.

-

Import interface wasi:clocks/monotonic-clock@0.2.1-draft

+

Import interface wasi:clocks/monotonic-clock@0.2.0

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.

-

Import interface wasi:clocks/wall-clock@0.2.1-draft

+

Import interface wasi:clocks/wall-clock@0.2.0

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.
  • datetime
  • -

    Import interface wasi:clocks/timezone@0.2.1-draft

    +

    Import interface wasi:clocks/timezone@0.2.0


    Types

    type datetime