Crates.io | flarch |
lib.rs | flarch |
version | 0.8.0 |
source | src |
created_at | 2022-07-05 18:26:17.700598 |
updated_at | 2024-09-09 11:59:41.650541 |
description | Common implementations for libc and wasm |
homepage | https://fledg.re |
repository | https://github.com/ineiti/fledger |
max_upload_size | |
id | 619946 |
size | 144,044 |
The Fledger Arch module holds common methods that are used by libc and wasm implementation. The following methods / structures are available:
DataStorage
allows 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 every dur
Interval
- a stream created by interval
By default the crate compiles for libc
.
wasm
compiles for the wasm targetnode
compiles for the node target