agnostic-lite 0.2.4

`agnostic-lite` is WASM friendly and light version of `agnostic`, for users who want to write async runtime-agnostic crate.
Documentation
agnostic-lite-0.2.4 has been yanked.

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 tasks

    Builtin supports runtimes

    • tokio
    • async-std
    • smol
  • AsyncLocalSpawner: trait for spawning local tasks

    Builtin supports runtimes

    • tokio
    • async-std
    • smol
    • wasm-bindgen-futures
  • AsyncSleep: trait for sleep functionality

    Builtin supports runtimes

    • tokio
    • async-std
    • smol
    • wasm-bindgen-futures
  • AsyncInterval: trait for interval functionality

    Builtin supports runtimes

    • tokio
    • async-std
    • smol
    • wasm-bindgen-futures
  • AsyncTimeout: 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.