nim-chronos icon indicating copy to clipboard operation
nim-chronos copied to clipboard

Chronos - An efficient library for asynchronous programming

Results 84 nim-chronos issues
Sort by recently updated
recently updated
newest added

Reentrancy causes event reordering and stack explosions, in addition to leading to hard-to-debug scenarios. Since none of chronos is actually tested under reentrant conditions (ie that all features such as...

version-4

Strict future access is now always enabled, making it a panic to access value/error when the Future is still pending - `read` and `readError` raise catchable exceptions instead which may...

https://github.com/status-im/nim-chronos/blob/f3b77d86615813690c5ab5e7cbe841521be2a20f/chronos/asyncmacro2.nim#L126-L133 If you take the body of a procedure after it is processed by `.async`, put it into a new procedure, and apply `.async` to it, `chronosInternalRetFuture` will refer to...

Note: this PR targets https://github.com/status-im/nim-chronos/pull/251 While working on https://github.com/status-im/nim-chronos/pull/298, I quickly realized that we need such a system, for instance for wait: ```nim proc wait*[T](fut: Future[T], timeout = InfiniteDuration): Future[T]...

Although https://github.com/status-im/nim-chronos/pull/418 was ultimately not merged, it contains an idea to improve performance in general: instead of allocating a separate `var result` that gets injected, it instead injects a `template...

This allows running code written for Chronos using `-d:asyncTimer=virtual` , turning it into a simple event-based simulation. Used in https://github.com/codex-storage/nim-libp2p-dht/pull/57

All right... this doesn't currently work and I need some help. Here's the goal: As a chronos user, I want to be able to measure callbacks durations (when using debug...

Great work getting https://github.com/status-im/nim-chronos/pull/406 in! It'll be handy. It looks like Chronos is using `AsyncFD` which reminded me of a PR I'd done a while back on MacOSX for in...

I was following example of #345 Basically changed https://api.ipify.org by https://1.1.1.1 but it fails ``` httpcommon.nim:86 raiseHttpConnectionError asyncfutures2.nim:509 internalCheckComplete ??? acquireConnection asyncfutures2.nim:509 internalCheckComplete httpclient.nim:1127 send ??? send asyncfutures2.nim:509 internalCheckComplete httpclient.nim:1425...