From 3ffb6e1ba3d8fcfc527192b9efeb2333d7485378 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Mon, 15 Aug 2016 16:30:08 +0700 Subject: [PATCH] AsyncEvent is now exported on all platforms and created with newAsyncEvent proc in upcoming asyncdispatch --- lib/upcoming/asyncdispatch.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/upcoming/asyncdispatch.nim b/lib/upcoming/asyncdispatch.nim index 162ac5e08a..c9db03e0eb 100644 --- a/lib/upcoming/asyncdispatch.nim +++ b/lib/upcoming/asyncdispatch.nim @@ -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