asynx

Crates.ioasynx
lib.rsasynx
version0.1.0
sourcesrc
created_at2022-04-25 07:46:44.638922
updated_at2022-04-25 07:46:44.638922
descriptionLibrary that helps you to simulate exception without `panic` in async Rust.
homepage
repositoryhttps://github.com/Jason5Lee/asynx
max_upload_size
id573691
size34,919
Jason Dongheng Lee (Jason5Lee)

documentation

README

ASYNc eXecption

Simulate exception without panic in async Rust.

DISCLAIMER: This crate is just to implement my idea. It may not be a good practice.

Use in your project:

[dependencies]
asynx = "0.1"

Check docs.rs docs for usage.

You can use it in no_std environment by

[dependencies]
asynx = { version = "0.1", default-features = false }

which will disable global implementation.

Check this blog for the main idea.

WARNING: The sync implementation under asynx::sync has many unsafe code. Use it as your own risk.

License

This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

Commit count: 2

cargo fmt