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

EDIT: This PR adds the possibility to do check exceptions in async procedures. More info from the updated README: ---- By specifying a `asyncraises` list to an async procedure, you...

This adds two new server flags, `ServerFlag.Dualstack` and `ServerFlag.NoDualstack`. When used with `::` as the bind address, this will allow to choose if the server should be dualstack or IPv6...

This PR uses the facilities provided in https://github.com/status-im/nim-stew/pull/134 to support `?` in `async` proc's.

When working inside of chronos async procs, the `?` control flow doesn't seem to work as it does with normal synchronous procs. The end result is that when inside of...

Currently our CI environment is based on using `msys` building environment, but this become an issue in last few days. Number of PRs got failed without any reasons: - https://github.com/status-im/nim-chronos/pull/282...

A regular token bucket To stay in int world, the fillRate is in fill per milliseconds I added a manual replenish as @arnetheduck suggested, but currently it's not fully compatible...

Consider following simplified scenario: ``` import chronos type SomeResourceWhichNeedToBeReleased = object proc freeResource(res: SomeResourceWhichNeedToBeReleased): void = discard proc use(res: SomeResourceWhichNeedToBeReleased): void= discard proc allocateResource: Future[SomeResourceWhichNeedToBeReleased] = discard proc someProcWhichUsesResource: Future[void]...

I'm experiencing runtime crashes from unhandled exceptions re: nim-chronos, with [L1436](https://github.com/status-im/nim-chronos/blob/master/chronos/transports/stream.nim#L1436-L1437) in `transports/stream.nim` reported as the culprit: ``` /Users/michael/repos/nim-dagger/experiments/localstore.nim(117) localstore /Users/michael/.nimble/pkgs/chronos-#export-selector-field/chronos/asyncloop.nim(1091) waitFor /Users/michael/.nimble/pkgs/chronos-#export-selector-field/chronos/asyncloop.nim(279) poll /Users/michael/repos/nim-dagger/experiments/localstore.nim(114) main /Users/michael/.nimble/pkgs/chronos-#export-selector-field/chronos/asyncloop.nim(279) poll /Users/michael/.nimble/pkgs/chronos-#export-selector-field/chronos/transports/stream.nim(1436) readStreamLoop...