summary refs log tree commit diff stats
path: root/lib/pure/asyncdispatch.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* split FutureStream from asyncfuturesMichał Zieliński2017-07-051-4/+5
|
* asyncdispatch: split asyncfutures into its own moduleMichał Zieliński2017-07-051-11/+20
| | | | This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
* Add waitFor on seq[Future], waitAll and more (#5189)Federico Ceratto2017-05-161-2/+2
| | | | | | * Switch to unittest and speedup * Make timers and callbacks fields public
* Remove unused oids import from asyncdispatch (#5811)Ruslan Mustakov2017-05-141-1/+1
|
* setGlobalDispatcher()Christopher Dunn2017-05-071-0/+10
|
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-148/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 async timers execution. (#5448)Andrey Sobolev2017-03-011-1/+5
|
* Various fixes to FutureStreams based on PR feedback.Dominik Picheta2017-02-261-1/+12
|
* Implemented a first working version of FutureStreams.Dominik Picheta2017-02-101-1/+1
|
* cleaned up accept-close-race fix #5279Araq2017-02-071-1/+1
|
* Fix Windows accept() to fail future instead of raisingRuslan Mustakov2017-02-011-20/+23
| | | | Resolves: #5279
* deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib ↵Andreas Rumpf2017-01-301-4/+4
| | | | deprecations
* asyncdispatch exception memory leaks fixes.cheatfate2017-01-271-4/+9
|
* Add pending operations presence check function, fixes #5155Anatoly Galiulin2016-12-291-1/+14
|
* Add comments to latest fixes.cheatfate2016-11-301-13/+6
| | | | | One more fix. Some artifacts removed.
* Added deques module, deprecating queuesRuslan Mustakov2016-11-241-6/+6
|
* Async: Refactors asyncdispatch.poll.Dominik Picheta2016-11-191-31/+22
|
* Async: Fixes problem when callbacks add other callbacks.Dominik Picheta2016-11-191-6/+12
| | | | For context, see http://irclogs.nim-lang.org/19-11-2016.html#19:08:51
* Async: Further callbacks will no longer be called after an EAGAIN.Dominik Picheta2016-11-191-4/+14
| | | | For context, see discussion here https://gitter.im/nim-lang/Nim?at=583090a2df9f0f6e7f576e43 or here http://irclogs.nim-lang.org/19-11-2016.html#17:30:59.
* Fix few typosFederico Ceratto2016-10-171-1/+1
|
* Fix handle of error only events.cheatfate2016-10-161-2/+2
|
* made async compile againAndreas Rumpf2016-09-261-1/+1
|
* Moves async futures into asyncfutures module.Dominik Picheta2016-09-251-293/+1
|
* FutureVar[T] parameters are now completed automatically.Dominik Picheta2016-09-251-9/+21
|
* Fixes #3847.Dominik Picheta2016-09-251-1/+3
|
* Fixes Futures' `or` operation so that asyncftpclient compiles.Dominik Picheta2016-09-171-3/+3
|
* Fixes #4170.Dominik Picheta2016-09-171-11/+52
|
* Fixes #4262.Dominik Picheta2016-09-171-73/+76
|
* Fix AsyncSocket sendDmitry Polienko2016-09-121-1/+1
|
* Some small fixes to changes introduced by #4683.Dominik Picheta2016-09-061-82/+26
|
* Revert function names scheme due to the @dom96 commentAnatoly Galiulin2016-09-061-18/+6
|
* Restore ``recvInto`` for backwards compatibilityAnatoly Galiulin2016-09-061-0/+12
|
* Add async IO operations with buffers on files and socketsAnatoly Galiulin2016-09-061-10/+84
|
* async: transfer all await/async macro related code to asyncmacro.nim module. ↵Eugene Kabanov2016-09-031-360/+2
| | | | | | | | (#4704) * Transfer all async macro related code to asyncmacro.nim. * Make tests green.
* Protect data argument for GC.cheatfate2016-08-301-1/+6
|
* stdlib and compiler don't use .immediate anymoreAndreas Rumpf2016-07-291-4/+4
|
* fixes #1970Andreas Rumpf2016-07-191-32/+33
|
* async: use -d:nimDumpAsync to see what the async macro generatesAndreas Rumpf2016-07-081-1/+3
|
* fixes #4371Andreas Rumpf2016-07-081-2/+4
|
* Fix #4390Eduardo Bart2016-06-211-1/+1
|
* Add withTimeout proc for futuresEduardo Bart2016-06-191-0/+18
|
* Lets make arguments names equal on all platforms.cheatfate2016-06-171-2/+2
|
* New version, without any piece of code duplication.cheatfate2016-06-171-0/+149
|
* Merge pull request #4336 from cheatfate/protectwinrwAndreas Rumpf2016-06-161-0/+16
|\ | | | | Implement protection on callback environment.
| * One more place to release callback environment protectioncheatfate2016-06-141-0/+2
| |
| * Implement protection on callback environment.cheatfate2016-06-141-0/+14
| |