workflow-wasm

Crates.ioworkflow-wasm
lib.rsworkflow-wasm
version0.14.0
sourcesrc
created_at2022-08-22 11:51:16.51754
updated_at2024-07-09 23:30:46.333194
descriptionWASM utilities for in-browser use (timers, callbacks, etc.)
homepage
repositoryhttps://github.com/workflow-rs/workflow-rs
max_upload_size
id650332
size68,611
surinder singh (surinder83singh)

documentation

README

workflow-wasm

Part of the workflow-rs application framework.


WASM (browser) functionality

github crates.io docs.rs license

Features

  • 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.
  • Utility functions that simplify accessing JavaScript object properties and function invocations (based on top of web-sys and js-sys APIs).
Commit count: 513

cargo fmt