export asyncdispatch handles (#15140)

* improve epoll docs

* export handles

* add comments and changelog
This commit is contained in:
flywind
2020-08-02 03:27:21 +08:00
committed by GitHub
parent 8e3f51f06c
commit 3ce32a7e40
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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