Skip to content

Commit

Permalink
Reduced async channel poll frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Aug 18, 2024
1 parent 6641fc0 commit a84de50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc/async_process.nim
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ proc recv*[T](achan: AsyncChannel[T]): Future[Option[T]] {.async.} =
if ok:
return data.some

await sleepAsync 10
await sleepAsync 50

return T.none

Expand Down

0 comments on commit a84de50

Please sign in to comment.