Crates.io | workflow-wasm |
lib.rs | workflow-wasm |
version | 0.18.0 |
source | src |
created_at | 2022-08-22 11:51:16.51754 |
updated_at | 2024-09-07 16:56:48.529967 |
description | WASM utilities for in-browser use (timers, callbacks, etc.) |
homepage | |
repository | https://github.com/workflow-rs/workflow-rs |
max_upload_size | |
id | 650332 |
size | 72,314 |
workflow-wasm
Part of the workflow-rs
application framework.
WASM (browser) functionality
timer
and interval
functions that wrap JavaScript setTimeout()
and setInterval()
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 using closure.forget()
functionality)Callback
struct that encapsulates a JavaScript event listener (callback) closure making it easier to creaet and retain JavaScript closures.