summary refs log tree commit diff stats
path: root/lib/pure/asyncdispatch.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + ↵Timothee Cour2020-03-131-1/+1
| | | | | | | | other fixes (#13550) * fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
* fixes async regressionAraq2020-03-111-1/+1
|
* fixes #13519Araq2020-03-111-1/+1
|
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-171-27/+29
|
* ARC: implemented a simple cycle detectorAraq2019-11-281-0/+2
|
* index out of bounds exception when data is empty (#12428)Jack Tang2019-11-221-9/+11
|
* async: cleaner solution that avoids GC_ref on strings which doesn't exist ↵Araq2019-11-131-6/+5
| | | | for --gc:arc
* Fix drain to correctly take into account hasPendingOperations and the ↵Ray Imber2019-10-101-2/+2
| | | | timeout value
* [backport] run nimpretty on asyncnarimiran2019-09-301-9/+9
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* Fix issue with long wait for passed timer [bugfix] (#12221)PMunch2019-09-221-3/+9
| | | | | | | | | | | | | | | | | | | | | * Fix issue with long wait for passed timer [bugfix] This fixes a small issue where a timer that had been completed while code executed would still wait for more events before being considered completed. This would in some scenarios incur a 500ms delay to the completion of a timer. * Refactor logic into * Add test case based on original issue * Use longer timeouts to be more lenient in checking * Revert to short timeouts, but widen the accepted range * Widen accepted range further, it is meant to check for a 500ms delay after all * Increase poll timeout to make it easier to detect mistakes
* asyndispatch: removed deprecated setEvent procAraq2019-09-211-5/+1
|
* Use std/monotimes in the stdlibOscar Nihlgård2019-07-161-6/+10
|
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-101-3/+3
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-43/+43
| | | | --styleCheck:error
* async: more 'owned' annotationsAraq2019-07-091-13/+13
|
* newruntime for async (#11650)Andreas Rumpf2019-07-051-18/+18
| | | | | | | * fixes overloading resolution for passing owned(Future[string]) to Future[T] * WIP: make --newruntime work with .async * memtracker: make it compile again * make Nimble compile again
* [bugfix] Fixes async IO operations stalling even after socket is closed. ↵Dominik Picheta2019-06-121-44/+73
| | | | (#11232)
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-3/+2
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* Fixes crashes when asyncdispatch.adjustTimeout returns a negative value. ↵Dominik Picheta2019-05-151-3/+2
| | | | (#11231)
* Implements pending future tracking in async.Dominik Picheta2019-05-061-0/+21
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-231-6/+6
|
* Documentation import fixes (#11070)Zed2019-04-211-17/+14
| | | | | | * Move asyncdispatch imports below introduction * Move nre imports below documentation
* fixes #10795Andreas Rumpf2019-03-061-5/+5
|
* Remove deprecated modules (asyncio, sockets, ftpclient) (#10401)Miran2019-01-221-42/+1
|
* Merge async common into asyncdispatch.Dominik Picheta2018-12-071-2/+211
|
* removes deprecated T/P typesAraq2018-11-161-3/+0
|
* export `asyncdispatch.callSoon` (fixes #7192)narimiran2018-11-121-3/+4
|
* docs: clarify `asyncCheck` vs `waitFor`citycide2018-10-271-1/+3
|
* stdlib: minor changes to avoid compiler warningsAndreas Rumpf2018-09-191-2/+2
|
* Handle fut.failed in asyncdispatch.WithTimeoutJedrzej Nowak2018-09-021-1/+5
| | | | Fixes: #8839
* Process timers before and after `select`. Fixes flaky #7758 test. (#8750)Dominik Picheta2018-08-251-19/+24
|
* Don't skip poll() when no handles are present. (#8727)Dominik Picheta2018-08-231-74/+72
| | | | | | | | | | | Fixes #7886. Fixes #7758. Fixes #6929. Fixes #3909. Replaces #8209.
* Allow float argument to sleepAsync() to allow sub-millisecond resolutionIco Doornekamp2018-02-231-1/+1
|
* Fixes #4995. (#7157)Dominik Picheta2018-02-131-1/+5
|
* Revert 3db460f5045e790b54ea382 as requested by @Araq.Dominik Picheta2018-01-281-20/+8
|
* Merge branch 'devel' into async-improvementsDominik Picheta2018-01-171-12/+33
|\
| * Add hasPendingOperations check to asyncdispatch.drainRuslan Mustakov2017-12-301-1/+1
| |
| * fixes a serious poll() regression that caused poll() to ignore the timeout ↵Andreas Rumpf2017-12-281-1/+1
| | | | | | | | parameter
| * Fix #6906cheatfate2017-12-211-1/+1
| |
| * make asyncdispatch.poll completing all opterations that can be comple… (#6911)Andreas Rumpf2017-12-191-11/+32
| | | | | | introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
* | Merge branch 'devel' into async-improvementsAndreas Rumpf2017-12-111-1/+2
|\|
| * Use addCallback rather than callback= in asyncfutures.all() (#6850)Mathias Stearn2017-12-091-2/+3
| | | | | | | | | | | | | | | | | | | | * Use addCallback rather than callback= in asyncfutures.all() Addresses part of #6849 * Stop using do notation for #6849 * Update example style
* | Fix asyncdispatch docgenDominik Picheta2017-11-261-2/+2
| |
* | Implements ``asyncdispatch.getIoHandler`` and assert on nil futures.Dominik Picheta2017-11-241-0/+8
| |
* | The AsyncFD type now implies that the underlying FD is registered.Dominik Picheta2017-11-241-3/+22
|/ | | | | * `asyncdispatch.register` won't attempt to register an ``AsyncFD``, but instead assume that it is already registered.
* Async upcoming (#6585)Dominik Picheta2017-11-221-140/+399
| | | | | | | | | | | | | * Merge upcoming async with current. * Various improvements to selectors (mostly docs). Two changes to highlight: * Renamed ``setEvent`` to ``trigger`` * Reused setBlocking from nativesockets. * Various changes/fixes to asyncdispatch after upcoming merge. * Make some attempts to be compatible with older selectors. * Reuse epoll module in ioselectors_epoll.
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* asyncdispatch: formatting fixesMichał Zieliński2017-07-121-1/+1
|
* asyncdispatch: add callSoon getter/setter, renamesMichał Zieliński2017-07-061-5/+5
|