Yuriy Glukhov
2094209837
Fixed #8399 ( #8401 )
2018-07-22 22:30:59 +02:00
Andreas Rumpf
0926754e68
make tests green again
2018-07-05 15:51:04 +02:00
Yuriy Glukhov
5c449c8cd1
Removed oldIterTranf feature
2018-06-10 23:42:53 +03:00
Yuriy Glukhov
60b9c9dc1f
Fixes #7985
2018-06-07 19:14:14 +03:00
Yuriy Glukhov
511d7079a1
Fixed tests
2018-06-06 20:04:37 +03:00
Yuriy Glukhov
5d166fcc0a
Review comments addressed. More thorough line info tracking.
2018-05-10 00:27:50 +03:00
Yuriy Glukhov
ce63490928
Yield in try
2018-05-09 22:25:28 +03:00
Yuriy Glukhov
7d38db284b
Extended tasync_in_seq_constr test
2018-05-09 22:25:27 +03:00
Yuriy Glukhov
d71f69ab50
Closure iter transformation
2018-05-09 22:25:27 +03:00
Andreas Rumpf
d8fde9daba
make tests green
2018-05-05 21:45:07 +02:00
Andreas Rumpf
0fad659bf7
make more tests green
2018-04-30 02:52:58 +02:00
Zahary Karadjov
10142e4a80
Fix some usages of typedesc in async procs
...
This also fixes a compilation error in modules, based only on the
new async module (i.e. not importing the full asyncdispatch)
2018-04-13 13:31:55 +03:00
andri lim
19164929ed
fixes #7347 , asyncfile.getFileSize ( #7354 )
...
* fixes #7347
* fixes #7347
2018-03-17 15:21:22 +00:00
Ruslan Mustakov
319e88585a
Fix AsyncFile open flags. Fixes #5531
2018-02-17 17:40:35 +07:00
Dominik Picheta
b754bfabb6
Merge pull request #7023 from yglukhov/unify-async
...
Unify async macro and futures for js and native targets
2018-01-17 15:06:32 +00:00
Dominik Picheta
72d9485e8e
Fix tasync_traceback test.
2018-01-11 16:52:14 +00:00
Dominik Picheta
b7713859ab
Use regex to match output of tasync_traceback.
2018-01-11 16:15:53 +00:00
Dominik Picheta
2c905f5e81
Merge pull request #6962 from nim-lang/fixes/6100
...
Fixes #6100 .
2018-01-10 23:11:26 +00:00
Yuriy Glukhov
c93655e8b4
Unify async macro and futures for js and native targets
2018-01-05 16:40:51 +02:00
Dominik Picheta
7e6dc3679a
Simplify async traceback processing.
2017-12-28 09:21:22 +01:00
Dominik Picheta
383c80971c
No need to recurse now that mergeEntries doesn't do any pattern matching.
2017-12-28 09:21:22 +01:00
Dominik Picheta
6301e33543
Show only detailed async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
3a790c9c72
Rename cb0 to asyncProcName_continue + other improvements to async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
a9a13e470b
Go through the re-raise stacks for more detailed tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
9ca6afe73a
Refine the async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
f73015ad9e
Implement some simple pattern-based transformation for async tracebacks.
2017-12-28 09:21:22 +01:00
Dominik Picheta
52cc925e0e
Fixes #6100 .
2017-12-27 22:37:11 +00:00
Andreas Rumpf
85ac3130aa
make asyncdispatch.poll completing all opterations that can be comple… ( #6911 )
...
introduce asyncdispatch.drain that completes all operations that can be completed immediately; implements #6523
2017-12-19 12:39:50 +01:00
Araq
e0591d4941
fixes #6626
2017-12-15 15:33:43 +01:00
Mathias Stearn
b87ef65532
Use addCallback rather than callback= in asyncfutures.all() ( #6850 )
...
* Use addCallback rather than callback= in asyncfutures.all()
Addresses part of #6849
* Stop using do notation for #6849
* Update example style
2017-12-09 00:55:04 +00:00
Dominik Picheta
4d931c6276
Add an attempted reproduction for #5531 .
2017-11-26 22:52:39 +00:00
Dominik Picheta
d3394be555
Async upcoming ( #6585 )
...
* 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.
2017-11-22 15:43:10 +01:00
Andreas Rumpf
1548743856
make tests green again
2017-11-18 23:03:16 +01:00
Sergey Avseyev
b7ea1b0819
Tests should not rely on external services ( #6703 )
...
This test depends on example.com site to be reachable, and fails when
there is no internet connection.
2017-11-15 17:25:00 +01:00
Sergey Avseyev
bdd35c9722
Fix endianness in the test ( #6715 )
2017-11-11 16:52:12 -05:00
Andreas Rumpf
4ea09e4df5
attempt to make travis green again
2017-11-05 21:44:22 +01:00
Andreas Rumpf
55cb959a68
make tests green again; closes #5861
2017-10-10 09:18:31 +02:00
Arne Döring
ddea990a70
removed newString proc again, reverted some unnecesary changes
2017-07-24 23:21:51 +02:00
Yuriy Glukhov
bdf6f59c6d
Fixes #5738 ( #6059 )
2017-07-15 08:50:41 +02:00
Dominik Picheta
8b107972c5
Merge pull request #5938 from zielmicha/futures
...
[WIP] Better Future
2017-07-14 20:18:06 +01:00
Euan T
7e4ca9a871
Update test header
...
Signed-off-by: Euan T <euantorano@gmail.com >
2017-07-10 09:23:45 +01:00
Euan Torano
3f3853945d
Adding test for recvline
...
Signed-off-by: Euan Torano <euantorano@gmail.com >
2017-07-09 20:50:47 +01:00
Michał Zieliński
797690ba3f
Future: support for multiple callbacks
2017-07-05 12:54:09 +02:00
Michał Zieliński
e86863e8f5
asyncdispatch: split asyncfutures into its own module
...
This slightly changes behaviour of callSoon - before loop is initialized, callSoon will call the function immediately.
2017-07-05 12:54:09 +02:00
Eugene Kabanov
907c488a61
One more attempt to fix tioselectors.nim test ( #6020 )
2017-06-27 12:14:53 +02:00
Yuriy Glukhov
58eae1171d
Fixes #5995
2017-06-18 00:57:05 +03:00
Yuriy Glukhov
6599cae281
Async macro fixes ( #5739 )
2017-05-16 22:09:19 +02:00
Federico Ceratto
fcd86883ed
Add waitFor on seq[Future], waitAll and more ( #5189 )
...
* Switch to unittest and speedup
* Make timers and callbacks fields public
2017-05-16 14:36:21 +01:00
Andreas Rumpf
3afd852f54
Fixes #5532 win async write ( #5791 )
...
* nimgrab tool bugfix: don't divide by zero
* fixes #5532 (asyncfile write on Windows)
* add a comment about what has been tried instead
2017-05-14 17:10:39 +02:00
Ruslan Mustakov
ecf278c467
Implement dial, support IPv6 in httpclient ( #5763 )
...
* 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
2017-05-02 09:25:50 +02:00