🥮 mooncakes.io
peter-jerry-ye
/
io
Search
Using system theme. Switch to light mode.
Using light mode. Switch to dark mode.
Using dark mode. Switch to system theme.
Expand all
Collapse all
http
→
io
→
io
moon add peter-jerry-ye/io@0.3.4
Download zip
Author
peter-jerry-ye
Version
0.3.4
License
Apache-2.0
Repository
github.com/peter-jerry-ye/io.mbt
Last updated
10 months ago
Downloads
113
Dependencies
peter-jerry-ye/async
0.2.0
peter-jerry-ye/wasi-imports
0.1.4
README
#
IO Library
This library provides (based on Wasm Component Model):
io
: performing an IO operation, provided by wasi-cli v0.2.0
http
: sending HTTP requests, provided by wasi-http v0.2.0
#
Usage
This project relies on the
async library
.
Typically, one should first define operations using
@promise.spawn
, and then use
@io.event_loop.run()
(this requires importing
@peter-jerry-ye/async/loop
) to start the event loop.
#
TODO
Add more utility functions, such as read a buffer
Add sync operations so that we don't rely on the event loop
Add documentation
#
Breaking Changes from 0.2.0
The
channel
and
stream
packages have been migrated to
peter-jerry-ye/async
.
Expand all
Collapse all
http
→
io
→
Install
moon add peter-jerry-ye/io@0.3.4
Download zip
peter-jerry-ye
0.3.4
Apache-2.0
github.com/peter-jerry-ye/io.mbt
Updated 10 months ago
113 downloads
Dependencies
peter-jerry-ye/async
0.2.0
peter-jerry-ye/wasi-imports
0.1.4
Powered by MoonBit
Site source
Report issue
Packages
Build queue
Skills
Statistics
© 2026 mooncakes.io