AsyncEvent is now exported on all platforms and created with newAsyncEvent proc in upcoming asyncdispatch
This commit is contained in:
parent
f44486cc85
commit
3ffb6e1ba3
1 changed files with 3 additions and 3 deletions
|
|
@ -1233,7 +1233,7 @@ when defined(windows) or defined(nimdoc):
|
|||
|
||||
registerWaitableHandle(p, hProcess, flags, pcd, proccb)
|
||||
|
||||
proc newEvent*(): AsyncEvent =
|
||||
proc newAsyncEvent*(): AsyncEvent =
|
||||
## Creates new ``AsyncEvent`` object.
|
||||
var sa = SECURITY_ATTRIBUTES(
|
||||
nLength: sizeof(SECURITY_ATTRIBUTES).cint,
|
||||
|
|
@ -1314,7 +1314,7 @@ else:
|
|||
readCB: Callback
|
||||
writeCB: Callback
|
||||
|
||||
AsyncEvent = SelectEvent
|
||||
AsyncEvent* = SelectEvent
|
||||
|
||||
PDispatcher* = ref object of PDispatcherBase
|
||||
selector: Selector[AsyncData]
|
||||
|
|
@ -1419,7 +1419,7 @@ else:
|
|||
if adata.writeCB == cb:
|
||||
adata.writeCB = nil
|
||||
update = true
|
||||
|
||||
|
||||
when supportedPlatform:
|
||||
if (customSet * events) != {}:
|
||||
let cb = keys[i].data.readCB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue