summary refs log tree commit diff stats
path: root/lib/pure/asyncfutures.nim
Commit message (Collapse)AuthorAgeFilesLines
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-3/+10
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* async: minor refactorings (#15354)Andreas Rumpf2020-09-181-26/+8
|
* change some Exceptions to CatchableError or Defect, fixes #10288 (#14069)hlaaftana2020-04-221-1/+1
|
* cycle breaker (#13593)Andreas Rumpf2020-03-191-1/+1
| | | | * cycle breaking as an alternative to cycle detection
* async: use $ and not repr in debug modeAraq2019-11-051-1/+1
|
* [backport] run nimpretty on asyncnarimiran2019-09-301-8/+8
|
* last stdlib cleanupsAraq2019-09-211-0/+9
|
* make async tests green againAndreas Rumpf2019-07-111-1/+5
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-3/+3
| | | | --styleCheck:error
* newruntime: async progressAraq2019-07-091-8/+24
|
* async: more 'owned' annotationsAraq2019-07-091-1/+2
|
* newruntime for async (#11650)Andreas Rumpf2019-07-051-3/+3
| | | | | | | * 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-5/+7
| | | | (#11232)
* Implements pending future tracking in async.Dominik Picheta2019-05-061-3/+48
|
* complete future only once in `or` (fixes #8982) (#9632)Miran2018-11-091-2/+3
| | | | | | | | | * complete future only once in `or` Analogous to `and`. Credits to @k0zmo for proposing the solution. * add test
* keep the order of the callbacksnarimiran2018-11-071-5/+11
|
* docs: clarify `asyncCheck` vs `waitFor`citycide2018-10-271-1/+2
|
* stdlib: minor changes to avoid compiler warningsAndreas Rumpf2018-09-191-1/+1
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-2/+2
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-2/+0
|
* Make clearCallbacks() public. (#7753)Eugene Kabanov2018-05-031-1/+1
|
* Merge branch 'devel' into async-improvementsDominik Picheta2018-01-171-12/+73
|\
| * Merge pull request #6962 from nim-lang/fixes/6100Dominik Picheta2018-01-101-3/+3
| |\ | | | | | | Fixes #6100.
| | * Fixes #6100.Dominik Picheta2017-12-271-3/+3
| | |
| * | Simplify async traceback processing.Dominik Picheta2017-12-281-42/+15
| | |
| * | made the logic correctAndreas Rumpf2017-12-281-6/+5
| | |
| * | attempt to get the stack trace logic right; fix boundariesAraq2017-12-281-2/+2
| | |
| * | attempt to get the stack trace logic rightAraq2017-12-281-14/+15
| | |
| * | optimized friendly stack tracesAraq2017-12-281-29/+19
| | |
| * | No need to recurse now that mergeEntries doesn't do any pattern matching.Dominik Picheta2017-12-281-1/+2
| | |
| * | Show only detailed async tracebacks.Dominik Picheta2017-12-281-62/+2
| | |
| * | Attempt to provide simplified and detailed tracebacksDominik Picheta2017-12-281-16/+34
| | |
| * | Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.Dominik Picheta2017-12-281-35/+62
| | |
| * | Go through the re-raise stacks for more detailed tracebacks.Dominik Picheta2017-12-281-12/+43
| | |
| * | Refine the async tracebacks.Dominik Picheta2017-12-281-7/+29
| | |
| * | Implement some simple pattern-based transformation for async tracebacks.Dominik Picheta2017-12-281-9/+68
| |/
* | Merge branch 'devel' into async-improvementsAndreas Rumpf2017-12-111-2/+2
|\|
| * Use addCallback rather than callback= in asyncfutures.all() (#6850)Mathias Stearn2017-12-091-2/+2
| | | | | | | | | | | | | | | | | | | | * Use addCallback rather than callback= in asyncfutures.all() Addresses part of #6849 * Stop using do notation for #6849 * Update example style
* | Implements ``asyncdispatch.getIoHandler`` and assert on nil futures.Dominik Picheta2017-11-241-0/+1
|/
* make asyncfutures.complete compileErik Johansson Andersson2017-07-181-2/+1
|
* asyncdispatch: formatting fixesMichał Zieliński2017-07-121-9/+13
|
* asyncdispatch: add callSoon getter/setter, renamesMichał Zieliński2017-07-061-3/+14
|
* Future: support for multiple callbacksMichał Zieliński2017-07-051-21/+62
|
* split FutureStream from asyncfuturesMichał Zieliński2017-07-051-101/+2
|
* asyncdispatch: split asyncfutures into its own moduleMichał Zieliński2017-07-051-0/+418
| | | | This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
* made async compile againAndreas Rumpf2016-09-261-293/+0
|
* revert brainless changesAndreas Rumpf2016-09-261-2/+2
|
* make travis greenAndreas Rumpf2016-09-261-2/+2
|
* Moves async futures into asyncfutures module.Dominik Picheta2016-09-251-0/+293