asyncdispatch: export Callback (#14042) [backport]
This let us see the definition of `Callback` in docs, which is required to even make use of asyncdispatch. Ref #13539.
This commit is contained in:
parent
3fe3db3c0d
commit
7beed44fc9
1 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ when defined(windows) or defined(nimdoc):
|
||||||
pcd: PostCallbackDataPtr
|
pcd: PostCallbackDataPtr
|
||||||
AsyncEvent* = ptr AsyncEventImpl
|
AsyncEvent* = ptr AsyncEventImpl
|
||||||
|
|
||||||
Callback = proc (fd: AsyncFD): bool {.closure, gcsafe.}
|
Callback* = proc (fd: AsyncFD): bool {.closure, gcsafe.}
|
||||||
|
|
||||||
proc hash(x: AsyncFD): Hash {.borrow.}
|
proc hash(x: AsyncFD): Hash {.borrow.}
|
||||||
proc `==`*(x: AsyncFD, y: AsyncFD): bool {.borrow.}
|
proc `==`*(x: AsyncFD, y: AsyncFD): bool {.borrow.}
|
||||||
|
|
@ -1098,7 +1098,7 @@ else:
|
||||||
# queue.
|
# queue.
|
||||||
type
|
type
|
||||||
AsyncFD* = distinct cint
|
AsyncFD* = distinct cint
|
||||||
Callback = proc (fd: AsyncFD): bool {.closure, gcsafe.}
|
Callback* = proc (fd: AsyncFD): bool {.closure, gcsafe.}
|
||||||
|
|
||||||
AsyncData = object
|
AsyncData = object
|
||||||
readList: seq[Callback]
|
readList: seq[Callback]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue