From 3ce32a7e40c92f305a6f48017fe9323d35720f13 Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Sun, 2 Aug 2020 03:27:21 +0800 Subject: [PATCH] export asyncdispatch handles (#15140) * improve epoll docs * export handles * add comments and changelog --- changelog.md | 2 ++ lib/pure/asyncdispatch.nim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 517919de9c..281995b0e4 100644 --- a/changelog.md +++ b/changelog.md @@ -143,6 +143,8 @@ `CountTable.inc` takes `val: int` again not `val: Positive`; I.e. it can "count down" again. - Removed deprecated symbols from `macros` module, deprecated as far back as `0.15`. +- Export `asyncdispatch.PDispatcher.handles` so that an external library can register them. + ## Language changes - The `=destroy` hook no longer has to reset its target, as the compiler now automatically inserts diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 6330a6ba96..41d67d1722 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -253,7 +253,7 @@ when defined(windows) or defined(nimdoc): PDispatcher* = ref object of PDispatcherBase ioPort: Handle - handles: HashSet[AsyncFD] + handles*: HashSet[AsyncFD] # Export handles so that an external library can register them. CustomObj = object of OVERLAPPED data*: CompletionData