Commit Graph
19 Commits
Author SHA1 Message Date
Dominik Picheta 4f5f98f0b1 Fixes incorrect async exception handling. Adds sleepAsync.
The tasyncexceptions test has been added which tests for this incorrect
exception handling behaviour. The problem was that the exception was
raised inside a callback which was called from a previously finished async
procedure. This caused a "Future already finished" error. The fix was to
simply reraise the exception if the retFutureSym is already finished.

sleepAsync was added to help with the reproduction of this test. It should
also be useful for users however.

Finally some debug information was added to futures to help with future
bugs.
2014-08-09 17:13:22 +01:00
Dominik Picheta cdcdab49b7 Fix broken async tests. 2014-07-13 11:02:34 +01:00
Dominik Picheta 6a38d36239 Rename asyncdispatch.close to asyncdispatch.closeSocket. 2014-05-23 13:14:28 +01:00
EXetoC b1c865a656 Fix #1170. 2014-05-04 01:52:42 +02:00
EXetoC 8802688e9f Fix #1171. 2014-05-03 23:32:14 +02:00
Dominik Picheta 2fb5d62927 Tester now appreciates the test target. Modified 'cmd' in specs. 2014-04-16 21:28:19 +01:00
Dominik Picheta 4ed1ac0078 Move asyncdispatch tests to asyncnet. 2014-03-26 10:31:16 +00:00
Dominik Picheta d310b01db1 Moved the global dispatcher to asyncdispatch. 2014-03-23 18:24:11 +00:00
Dominik Picheta 10f205bb52 Fixes tasyncawait and the net module on Linux. 2014-03-23 11:39:24 +00:00
Dominik Picheta 2ce9f1c77f Copied most blocking socket operations to the net module. 2014-03-22 22:33:53 +00:00
Dominik Picheta de64e8ec22 PFuture[void] now works.
Return types can also be completely ommitted. PFuture[void] will then be
implicitly deduced.
2014-03-15 00:11:01 +00:00
Dominik Picheta 1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Dominik Picheta d97a397139 Fixed tasyncawait on Windows.
Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
2014-03-12 20:42:36 +00:00
Dominik Picheta 2ce07042fd tasyncawait now works on Linux.
Reworked detection of a file descriptor being closed with epoll (in the
case of sockets it is when the remote host disconnects). Ensured that
events are only updated when they change.
2014-03-11 21:53:35 +00:00
Dominik Picheta a097526956 Fixes to asyncio2 on Linux. 2014-03-09 13:49:38 +00:00
Dominik Picheta 3b5825e9bc Implemented selector support for asyncio2. 2014-02-22 17:22:19 +00:00
Dominik Picheta 17ef758cc3 Fix processing of 'await' with a nnkCall.
Specifically, ``discard readMessages(disp, await disp.accept(server))``
works now, i.e. using 'await' as one of the params to a proc call.
2014-02-16 19:56:17 +00:00
Dominik Picheta cac39b27cf Added await test. 2014-02-16 13:55:38 +00:00
Araq 20b5f31c03 new tester; all tests categorized 2014-01-13 02:10:03 +01:00