summary refs log tree commit diff stats
path: root/tests/async
Commit message (Collapse)AuthorAgeFilesLines
* Fix some usages of typedesc in async procsZahary Karadjov2018-04-131-6/+37
| | | | | This also fixes a compilation error in modules, based only on the new async module (i.e. not importing the full asyncdispatch)
* fixes #7347, asyncfile.getFileSize (#7354)andri lim2018-03-172-0/+12
| | | | | | * fixes #7347 * fixes #7347
* Fix AsyncFile open flags. Fixes #5531Ruslan Mustakov2018-02-171-2/+2
|
* Merge pull request #7023 from yglukhov/unify-asyncDominik Picheta2018-01-172-2/+30
|\ | | | | Unify async macro and futures for js and native targets
| * Unify async macro and futures for js and native targetsYuriy Glukhov2018-01-052-2/+30
| |
* | Fix tasync_traceback test.Dominik Picheta2018-01-111-0/+1
| |
* | Use regex to match output of tasync_traceback.Dominik Picheta2018-01-111-60/+69
| |
* | Merge pull request #6962 from nim-lang/fixes/6100Dominik Picheta2018-01-102-1/+16
|\ \ | |/ |/| Fixes #6100.
| * Fixes #6100.Dominik Picheta2017-12-272-1/+16
| |
* | Simplify async traceback processing.Dominik Picheta2017-12-281-29/+43
| |
* | No need to recurse now that mergeEntries doesn't do any pattern matching.Dominik Picheta2017-12-281-2/+2
| |
* | Show only detailed async tracebacks.Dominik Picheta2017-12-281-10/+17
| |
* | Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.Dominik Picheta2017-12-281-0/+1
| |
* | Go through the re-raise stacks for more detailed tracebacks.Dominik Picheta2017-12-281-3/+44
| |
* | Refine the async tracebacks.Dominik Picheta2017-12-281-5/+12
| |
* | Implement some simple pattern-based transformation for async tracebacks.Dominik Picheta2017-12-281-0/+46
|/
* make asyncdispatch.poll completing all opterations that can be comple… (#6911)Andreas Rumpf2017-12-191-3/+3
| | | introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
* fixes #6626Araq2017-12-151-2/+3
|
* Use addCallback rather than callback= in asyncfutures.all() (#6850)Mathias Stearn2017-12-091-0/+17
| | | | | | | | | | * Use addCallback rather than callback= in asyncfutures.all() Addresses part of #6849 * Stop using do notation for #6849 * Update example style
* Add an attempted reproduction for #5531.Dominik Picheta2017-11-261-0/+15
|
* Async upcoming (#6585)Dominik Picheta2017-11-221-1/+1
| | | | | | | | | | | | | * 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.
* make tests green againAndreas Rumpf2017-11-181-5/+4
|
* Tests should not rely on external services (#6703)Sergey Avseyev2017-11-151-2/+13
| | | | This test depends on example.com site to be reachable, and fails when there is no internet connection.
* Fix endianness in the test (#6715)Sergey Avseyev2017-11-111-1/+1
|
* attempt to make travis green againAndreas Rumpf2017-11-051-0/+1
|
* make tests green again; closes #5861Andreas Rumpf2017-10-101-2/+2
|
* removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-3/+3
|
* Fixes #5738 (#6059)Yuriy Glukhov2017-07-152-0/+66
|
* Merge pull request #5938 from zielmicha/futuresDominik Picheta2017-07-142-0/+21
|\ | | | | [WIP] Better Future
| * Future: support for multiple callbacksMichał Zieliński2017-07-051-0/+20
| |
| * asyncdispatch: split asyncfutures into its own moduleMichał Zieliński2017-07-051-0/+1
| | | | | | | | This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
* | Update test headerEuan T2017-07-101-1/+1
| | | | | | | | Signed-off-by: Euan T <euantorano@gmail.com>
* | Adding test for recvlineEuan Torano2017-07-091-0/+54
|/ | | | Signed-off-by: Euan Torano <euantorano@gmail.com>
* One more attempt to fix tioselectors.nim test (#6020)Eugene Kabanov2017-06-271-4/+8
|
* Fixes #5995Yuriy Glukhov2017-06-181-0/+3
|
* Async macro fixes (#5739)Yuriy Glukhov2017-05-161-0/+9
|
* Add waitFor on seq[Future], waitAll and more (#5189)Federico Ceratto2017-05-161-38/+39
| | | | | | * Switch to unittest and speedup * Make timers and callbacks fields public
* Fixes #5532 win async write (#5791)Andreas Rumpf2017-05-141-0/+17
| | | | | | * nimgrab tool bugfix: don't divide by zero * fixes #5532 (asyncfile write on Windows) * add a comment about what has been tried instead
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling
* Fix tioselectors.nim for appveyor. (#5694)Eugene Kabanov2017-04-121-3/+4
|
* getFileSize and setFileSize procedures for File and AsyncFileEmery Hemingway2017-04-051-2/+3
| | | | | Platform independent procedure to set a file length. Useful when replacing file content.
* Fix wrong value range of ntohs ... (#5390)wt2017-03-311-3/+3
|
* Fix tioselectors.nim test timeouts to be executed in appveyor more stable. ↵Eugene Kabanov2017-03-291-4/+4
| | | | (#5622)
* Fixes to support Dragonfly BSD. (#5552)Eugene Kabanov2017-03-171-6/+6
| | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling.
* asyncdispatch.nim recursion test. (#5534)Eugene Kabanov2017-03-141-0/+21
|
* Various fixes to FutureStreams based on PR feedback.Dominik Picheta2017-02-261-2/+2
|
* Fixes tests.Dominik Picheta2017-02-111-0/+1
|
* Remove immediate FutureStream procs and make 'put' awaitable.Dominik Picheta2017-02-101-2/+2
|
* Improve implementation of takeAsync for FutureStreams.Dominik Picheta2017-02-101-4/+22
|
* Add test spec to tfuturestreamDominik Picheta2017-02-101-0/+14
|