Federico Ceratto
7d24656b0a
Fix few typos
2016-10-17 13:12:15 +01:00
cheatfate
0ff7fbea34
Fix handle of error only events.
2016-10-16 04:03:45 +03:00
Andreas Rumpf
21e35c201c
made async compile again
2016-09-26 23:31:36 +02:00
Dominik Picheta
6aa8ff9af6
Moves async futures into asyncfutures module.
2016-09-25 18:24:35 +02:00
Dominik Picheta
927fce4c7f
FutureVar[T] parameters are now completed automatically.
2016-09-25 16:05:22 +02:00
Dominik Picheta
8a6343b5b6
Fixes #3847 .
2016-09-25 13:02:10 +02:00
Dominik Picheta
dfe416eaad
Fixes Futures' or operation so that asyncftpclient compiles.
2016-09-17 17:21:05 +02:00
Dominik Picheta
75e5c87f15
Fixes #4170 .
2016-09-17 14:19:26 +02:00
Dominik Picheta
5bf16439e1
Fixes #4262 .
2016-09-17 13:22:04 +02:00
Dmitry Polienko
d810b4515e
Fix AsyncSocket send
2016-09-12 22:42:12 -07:00
Dominik Picheta
87eb3a105d
Some small fixes to changes introduced by #4683 .
2016-09-06 20:35:02 +02:00
Anatoly Galiulin
60dbfb2ec9
Revert function names scheme due to the @dom96 comment
2016-09-06 09:31:13 +07:00
Anatoly Galiulin
862d6ad234
Restore `recvInto` for backwards compatibility
2016-09-06 09:31:13 +07:00
Anatoly Galiulin
e4c46e6fba
Add async IO operations with buffers on files and sockets
2016-09-06 09:31:13 +07:00
Eugene Kabanov
4fa3ded9c7
async: transfer all await/async macro related code to asyncmacro.nim module. ( #4704 )
...
* Transfer all async macro related code to asyncmacro.nim.
* Make tests green.
2016-09-03 20:52:45 +02:00
cheatfate
c5ffdd0389
Protect data argument for GC.
2016-08-30 23:15:08 +03:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
67b024838c
fixes #1970
2016-07-19 20:44:08 +02:00
Andreas Rumpf
d83eb70643
async: use -d:nimDumpAsync to see what the async macro generates
2016-07-08 18:05:36 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Eduardo Bart
404b5b5ff4
Fix #4390
2016-06-21 19:42:42 -03:00
Eduardo Bart
c93292e2f7
Add withTimeout proc for futures
2016-06-19 12:56:37 -03:00
cheatfate
a93ae86088
Lets make arguments names equal on all platforms.
2016-06-17 13:44:28 +03:00
cheatfate
b53f13cbe7
New version, without any piece of code duplication.
2016-06-17 13:37:42 +03:00
Andreas Rumpf
9837b12ee6
Merge pull request #4336 from cheatfate/protectwinrw
...
Implement protection on callback environment.
2016-06-16 16:24:30 +02:00
Dominik Picheta
500aa0cb3f
Reverts 1446dc87c3. Fixes #4333 . Fixes #4170 .
2016-06-15 16:56:28 +01:00
cheatfate
974dcc8766
One more place to release callback environment protection
2016-06-14 22:33:15 +03:00
cheatfate
11d9b15fc4
Implement protection on callback environment.
2016-06-14 21:23:48 +03:00
cheatfate
de6af2f887
Resolve some dom96 comments
2016-06-12 16:25:34 +03:00
cheatfate
43329c5909
Introduce addRead/addWrite for Windows IOCP.
2016-06-12 15:09:30 +03:00
Константин Молчанов
3538e00fc7
stdlib: asyncdispatch: all: Docs updated.
2016-06-02 22:23:27 +03:00
Константин Молчанов
83af9888f5
stdlib: asyncdispatch: all: Redundant closure removed.
2016-06-02 17:20:46 +03:00
Konstantin Molchanov
a29f8df5bb
stdlib: asyncdispatch: all: Tests now pass; import sequtils removed; Future[void] case optimized.
2016-06-01 00:54:49 +04:00
Konstantin Molchanov
f44e065356
sttdlib: asyncdispatch: all: Add Future[void] support.
2016-05-31 22:33:51 +04:00
Konstantin Molchanov
c821cebf27
stdlib: asyncdispatch: all: typo fixed.
2016-05-31 15:33:41 +04:00
Konstantin Molchanov
6e8053853b
stdlib: asyncdispatch: add proc supports varargs now.
2016-05-31 15:32:30 +04:00
Konstantin Molchanov
5a007a84fc
Stdlib: asyncdispatch: all proc: Fix incorect counter value issue.
2016-05-31 14:56:45 +04:00
Konstantin Molchanov
fb9fa5f6a3
Stdlib: asyncdispatch: all proc: Replace req with openarray.
2016-05-31 14:51:24 +04:00
Konstantin Molchanov
33f0538566
Stdlib: asyncdispatch: Add support of varargs to all.
2016-05-31 10:21:21 +04:00
Konstantin Molchanov
67ae65064c
Stdlib: asyncdispatch: Add proc all.
2016-05-30 17:30:14 +04:00
cheatfate
aba60e54d5
Resolve bugs with deep recursion of asyncdispatch.
...
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Dominik Picheta
299989f3aa
Restore sanity check for bytesReceived in asyncdispatch.
2016-05-13 13:41:46 +01:00
cheatfate
6fa6fdeb34
Resolve bugs based on unreliable bytesReceived value.
2016-05-12 21:11:42 +03:00
Dominik Picheta
d2b191dc73
Merge pull request #4122 from yglukhov/binheap
...
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 00:04:32 +03:00
cheatfate
2a2a3d6c39
CompletionKey parameter for functions CreateIoCompletionPort,
...
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
2016-04-19 03:04:44 +03:00
Dominik Picheta
1446dc87c3
await x where x is Fut var now reads after yield. Fixes #3964 .
2016-04-04 22:50:31 +01:00
Araq
0a4d9aa954
fixes regression
2015-10-07 10:03:45 +02:00
Adam Strzelecki
be991ed413
Rename rawsockets module to nativesockets
...
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.
A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Araq
7c012cb797
fixes #3356
2015-09-23 21:46:37 +02:00