-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert to resources. wasi-clocks no longer has any pseudo-resources, so this just updates the poll dependency to account for the changes in WebAssembly/wasi-io#46. * git add poll.wit * Update to wit-abi-up-to-date@v14. * Update to actions/checkout@v3. * Update to the latest wasi-io changes. * Update to wit-abi-up-to-date@v15 and wit-deps 0.3.3. * wasi-io is now updated
- Loading branch information
1 parent
352e24e
commit d1a5d8a
Showing
10 changed files
with
363 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[poll] | ||
url = "https://github.com/WebAssembly/wasi-poll/archive/main.tar.gz" | ||
sha256 = "d4c27124f4c137eb538b5c92ba5858ed9042e11b24a2eef85d14becd0b7f55de" | ||
sha512 = "422c01b273b4b1377ece6f2e4ba0dfc609ca8ef30a3e0be0e172e1303fcf7b3ca4c470f4dea6c51bdf114b0f5c871ebc4934dfe3bf217d66ea689748df2b1e55" | ||
[io] | ||
url = "https://github.com/WebAssembly/wasi-io/archive/main.tar.gz" | ||
sha256 = "6e20bcf4d4f5466b60c05ea8da7289ca361a7febdd22ab1a531e5ef7e394ab8d" | ||
sha512 = "21f6689bce6ed6d9e3bd96372e5c7ed003a7aefbf8d49b4eea949dfbd265cf57a0d7dc67aa71e3de75d48fcc2c0cfe5f06f7e9e7959a23bc98f77da85f4161b9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
poll = "https://github.com/WebAssembly/wasi-poll/archive/main.tar.gz" | ||
# Temporarily use the resources branch. | ||
io = "https://github.com/WebAssembly/wasi-io/archive/main.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package wasi:io | ||
|
||
/// A poll API intended to let users wait for I/O events on multiple handles | ||
/// at once. | ||
interface poll { | ||
/// A "pollable" handle. | ||
resource pollable | ||
|
||
/// Poll for completion on a set of pollables. | ||
/// | ||
/// This function takes a list of pollables, which identify I/O sources of | ||
/// interest, and waits until one or more of the events is ready for I/O. | ||
/// | ||
/// The result `list<u32>` contains one or more indices of handles in the | ||
/// argument list that is ready for I/O. | ||
/// | ||
/// If the list contains more elements than can be indexed with a `u32` | ||
/// value, this function traps. | ||
/// | ||
/// A timeout can be implemented by adding a pollable from the | ||
/// wasi-clocks API to the list. | ||
/// | ||
/// This function does not return a `result`; polling in itself does not | ||
/// do any I/O so it doesn't fail. If any of the I/O sources identified by | ||
/// the pollables has an error, it is indicated by marking the source as | ||
/// being reaedy for I/O. | ||
poll-list: func(in: list<borrow<pollable>>) -> list<u32> | ||
|
||
/// Poll for completion on a single pollable. | ||
/// | ||
/// This function is similar to `poll-list`, but operates on only a single | ||
/// pollable. When it returns, the handle is ready for I/O. | ||
poll-one: func(in: borrow<pollable>) | ||
} |
Oops, something went wrong.