diff --git a/lib/pure/asyncdispatch.nim b/lib/pure/asyncdispatch.nim index 39f6c460e7..b4ff7b4127 100644 --- a/lib/pure/asyncdispatch.nim +++ b/lib/pure/asyncdispatch.nim @@ -1898,7 +1898,7 @@ proc activeDescriptors*(): int {.inline.} = ## event loop. This is a cheap operation that does not involve a system call. when defined(windows): result = getGlobalDispatcher().handles.len - else: + elif not defined(nimdoc): result = getGlobalDispatcher().selector.count when defined(posix):