Asyncdispatch fixes.
``return`` is now transformed into a ``return nil`` in the async iterator to work around the no-yield in ``try .. except ..`` closure iterator limitation.
This commit is contained in:
parent
694fc87b1d
commit
d0478a5637
2 changed files with 20 additions and 7 deletions
|
|
@ -430,7 +430,7 @@ proc generateHeaders(r: TURL, httpMethod: THttpMethod,
|
|||
add(result, "\c\L")
|
||||
|
||||
type
|
||||
PAsyncHttpClient = ref object
|
||||
PAsyncHttpClient* = ref object
|
||||
socket: PAsyncSocket
|
||||
connected: bool
|
||||
currentURL: TURL ## Where we are currently connected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue