Crate wasmrs_runtime

Source
Expand description

§wasmrs-runtime

wasmrs-runtime is a set of structs and functions that are normalized across multithreaded native tokio and single-threaded WebAssembly using whatever the smallest, fastest, single threaded, async, WebAssembly-compatible runtime of the day is.

§Notice!

You’re better off not relying on this crate. It’s a crate that exists only for as long as it needs to. As WebAssembly matures and there are more standard solutions for the problems this crate solves, this crate will be deprecated.

§More Info

For more information on wasmRS, see the core wasmrs crate.

WasmRS makes heavy use of generated code from apex specs and generators to automate all of the boilerplate. See the getting-started for usage.

§Contributing

See CONTRIBUTING.md

§License

See the root LICENSE.txt

Structs§

MutRc
OccupiedEntry
OneShotReceiver
A OneShort Receiver that works the same way in single-threaded WebAssembly as multi-threaded native.
OneShotSender
A Unbounded Sender that works the same way in single-threaded WebAssembly as multi-threaded native.
OptionalMut
SafeMap
UnboundedReceiver
A Unbounded Receiver that works the same way in single-threaded WebAssembly as multi-threaded native.
UnboundedSender
A Unbounded Sender that works the same way in single-threaded WebAssembly as multi-threaded native.
VacantEntry

Enums§

Entry
Error
Error type for wasmRS Runtime errors.

Traits§

ConditionallySend
ConditionallySendSync

Functions§

exhaust_pool
oneshot
A oneshot channel similar to tokio::sync::oneshot::channel but works the same way in single-threaded WebAssembly as multi-threaded native.
spawn
unbounded_channel
Create an unbounded channel.

Type Aliases§

BoxFuture
RtRc
TaskHandle