37 releases (15 breaking)
0.18.0 | Sep 7, 2024 |
---|---|
0.15.0 | Jul 26, 2024 |
0.11.0 | Feb 25, 2024 |
0.10.2 | Dec 24, 2023 |
0.1.0 | Sep 21, 2022 |
#70 in WebAssembly
2,358 downloads per month
Used in 58 crates
(30 directly)
225KB
4.5K
SLoC
workflow-wasm
Part of the workflow-rs
application framework.
WASM (browser) functionality
Features
timer
andinterval
functions that wrap JavaScriptsetTimeout()
andsetInterval()
returning a handle that encapsulates the JavaScript handle and the callback closure. Dropping this handle results in the closing of the timeout or interval as well as destruction of the closure. (This is useful to prevent memory leaks when creating JavaScript Closures and usingclosure.forget()
functionality)Callback
struct that encapsulates a JavaScript event listener (callback) closure making it easier to creaet and retain JavaScript closures.- Utility functions that simplify accessing JavaScript object properties and function invocations (based on top of web-sys and js-sys APIs).
Dependencies
~12–27MB
~418K SLoC