FlArch
The Fledger Arch module holds common methods that are used by libc and wasm implementation. The following methods / structures are available:
DataStorageallows to store key/value pairs in a file / localStoragetasks::*various useful tools:now() -> i64- returns the current timestamp in milliseconds as i64spawn_local<F: Future<Output = ()> + 'static>(f: F)- spawns a future locallywait_ms(ms: u32)- async wait in millisecondsinterval(dur: Duration)- creates a stream that will send the expected time of resolution everydurInterval- a stream created byinterval
By default the crate compiles for libc.
Features
wasmcompiles for the wasm targetnodecompiles for the node target