nim-chronos
nim-chronos copied to clipboard
Chronos - An efficient library for asynchronous programming
## My Use Case I needed to calculate the storage requirements for a very large set of archives hosted on a website. The archives are retrieved with a POST method,...
As we want user to be able to work without handling exceptions (with results for instance), we have an issue with cancellation. Currently, the only way to handle it (as...
I've disabled chronos on OSX from important_packages in https://github.com/nim-lang/Nim/pull/13954 because CI for chronos fails on OSX: https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/4234/logs/76 ``` 2020-04-11T13:10:46.5530120Z [1m[31mFAIL: [36mhttps://github.com/status-im/nim-chronos C[0m 2020-04-11T13:10:46.5530940Z [1m[36mTest "https://github.com/status-im/nim-chronos" in category "nimble-packages"[0m 2020-04-11T13:10:46.5531670Z [1m[31mFailure:...
While working on the `nim-task-runner` repo, which imports `nim-chronos`, it was found that the `selector` and `handles` fields on `PDispatcher` needed to be exported so that objects returned from `getThreadDispatcher()`...
* Add `AsyncChannel[T]` and tests * Add `AsyncThreadEvent` and tests. * Refactor OS API declarations to `osapi.nim`. * Add `awaitForSingleObject()` and `awaitForSelectEvent()`. * Add `skip()` to some tests. * Bump...
* Add tests for this new behavior. * Move cancellation tests from `testfut.nim` to `testcancel.nim`. * Fix cancellation tests to follow new behavior. * Fix HTTP server to follow new...
Chronos needs an API for launching sub-processes and interacting with their standard input and output through `AsyncPipe`. Additional APIs may be added for controlling process groups and for automatically terminating...
[Minimal example:](https://play.nim-lang.org/#ix=3qGJ) ```Nim import chronos import posix import nativesockets proc processClient(transp: DatagramTransport, raddr: TransportAddress): Future[void] {.async.} = discard 1 var x = 0 let ta = initTAddress("::", 9000) let localSock...
I tried below , found only one single thread actually handle requests. I read `httpbeast` source its thread func use global dispatcher, then I checked chronos almost threaded dispatcher. ```...