Skip to content

Commit

Permalink
export asyncdispatch handles (#15140)
Browse files Browse the repository at this point in the history
* improve epoll docs

* export handles

* add comments and changelog
  • Loading branch information
ringabout authored Aug 1, 2020
1 parent 8e3f51f commit 3ce32a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/pure/asyncdispatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ce32a7

Please sign in to comment.