Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

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).