🥮 mooncakes.io
peter-jerry-ye
/
io
Search
Sign in
Using system theme. Switch to light mode.
0.3.0
0.3.4 (latest)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Expand all
Collapse all
http
→
io
→
io
moon add peter-jerry-ye/io@0.3.0
Download zip
Author
peter-jerry-ye
Version
0.3.0
License
Apache-2.0
Repository
github.com/peter-jerry-ye/io.mbt
Last updated
last year
Downloads
152
Dependencies (3)
peter-jerry-ye/async
0.1.2
peter-jerry-ye/wasi-imports
0.1.4
tonyfettes/encoding
0.1.0
Dependents (0)
No dependents
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
.
Install
moon add peter-jerry-ye/io@0.3.0
Download zip
peter-jerry-ye
Apache-2.0
github.com/peter-jerry-ye/io.mbt
Updated last year
152 downloads
Dependencies (3)
peter-jerry-ye/async
0.1.2
peter-jerry-ye/wasi-imports
0.1.4
tonyfettes/encoding
0.1.0
Dependents (0)
No dependents
Powered by MoonBit
Site source
Report issue
Packages
Build queue
Skills
Statistics
© 2026 mooncakes.io