Comments (1)
This is intended behavior, which should be explicitly documented. There are one or two exceptions to this rule in the library, but generally:
- If
cancel
is not invoked, the callback is guaranteed to be called exactly once - If the corresponding
cancel
is called before the callback has been invoked, the callback will not be called at all
This is important for the fiber based code in vibe.d to be able to reliably implement scoped waiting for events. It might make sense though to add a higher-level timer API akin to eventcore.socket
that provides an additional method that automatically calls wait
again, for cases where the callback based API is used directly.
from eventcore.
Related Issues (20)
- Implement an opt-in performance mode for the Posix process driver HOT 1
- SIGPIPE on send
- Compilation fails on FreeBSD 12.0 HOT 7
- Is EINTR handled on POSIX? HOT 1
- Release v0.8.49 broke dlang's Buildkite CI HOT 2
- What's the validation counter used for?
- code duplication within version block below. HOT 2
- dub produces error on FreeBSD 12.1-RELEASE-p10 HOT 2
- Do not call `AA.remove` from finalizer HOT 4
- android pie compile error HOT 1
- What EventDrive* should I use to react to WinAPI gui messages? HOT 8
- Use io_uring where sensible HOT 1
- Possible s_driver leaking path HOT 4
- Creating and waiting on timers causes GC allocation every time - expected?
- Issue with installing vibe.d on android for termux HOT 2
- Implement support for DNS resolution via `org.freedesktop.resolve1`
- Building eventcore failing on FreeBSD 13.0-RELEASE
- waitForData is not implemented for Windows
- About io_uring support ;)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventcore.