4 releases
0.3.16 | Oct 6, 2024 |
---|---|
0.3.15 | Apr 27, 2024 |
0.3.13 |
|
0.2.5 |
|
0.1.1 |
|
#1355 in Asynchronous
301 downloads per month
Used in 18 crates
(9 directly)
170KB
4.5K
SLoC
Agnostic-Lite
agnostic-lite
is WASM friendly and light version of agnostic
, for users who want to write async runtime-agnostic crate.
English | 简体中文
Introduction
agnostic-lite
is WASM friendly and light version of agnostic
, for users who want to write async runtime-agnostic crate.
agnostic-lite
splits the big Runtime
trait in agnostic
in multiple small traits:
AsyncSpawner
: trait for spawning tasksAsyncLocalSpawner
: trait for spawning local tasksAsyncSleep
: trait for sleep functionalityAsyncInterval
: trait for interval functionalityAsyncTimeout
: trait for timeout functionality
Builtin supports runtimes:
tokio
async-std
smol
wasm-bindgen-futures
Installation
[dependencies]
agnostic-lite = "0.2"
License
agnostic-lite
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2024 Al Liu.
Dependencies
~0.8–13MB
~162K SLoC