| Crates.io | asynx |
| lib.rs | asynx |
| version | 0.1.0 |
| created_at | 2022-04-25 07:46:44.638922+00 |
| updated_at | 2022-04-25 07:46:44.638922+00 |
| description | Library that helps you to simulate exception without `panic` in async Rust. |
| homepage | |
| repository | https://github.com/Jason5Lee/asynx |
| max_upload_size | |
| id | 573691 |
| size | 34,919 |
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.
This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).