A minimal D application.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
A small asyncronous framework for everyone.
Notice: miniasync will NOT recieve further updates; please switch to ninox-d_async
The code in this repository is licensed under AGPL-3.0-or-later; for more details see the
LICENSE file in the repository.
This library aims to have an small but complete asyncronous solution for dlang programs.
It's based around
await; a simple example would be:
import core.time : seconds; import async.timeout : timeout; timeout(seconds(5)).await();
timeout had a signature of
TimeoutFuture timeout(Duration dur); where
The future itselv implements
T await(); which can be called to await the future and get the result; in out case here
a timeout dosnt produce a value.
To use futures, you must be in an fiber, and to achive that you simply schedule your function:
import async : gscheduler; gscheduler.schedule(&someFunc);
main-function also should call
gscheduler.loop(); before it's end to actually start the whole eventloop.
- improve handling / distinction of io-events
- improve way we handle futures: would like to get rid of spin-lock like codeflow
- add more io futures:
- chunked file io
- improve socket based io by making the underlaying socket non-blocking
- add signalhandlers for
- support more platforms like windows and osx
- add thread-pool support
- add more library features such as arbitary streams
- add async variant of
captureAllto be paralell instead of linear
- Registered by Mai Lapyst
- 0.3.4 released 3 months ago
- Copyright © 2023, Mai-Lapyst
- Sub packages:
0.3.4 2023-Jul-09 0.3.3 2023-Apr-10 0.3.2 2023-Apr-08 0.3.1 2023-Apr-07 0.3.0 2023-Apr-07
- Download Stats:
0 downloads today
0 downloads this week
2 downloads this month
39 downloads total
- Short URL: