status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/docs/chronos
Apache License 2.0
353 stars 51 forks source link

Feature request: make future-related API importable #369

Closed SirNickolas closed 1 year ago

SirNickolas commented 1 year ago

chronos/asyncloop does include ./asyncfutures2, which means that user code cannot import chronos/asyncfutures2 (the file would be processed twice and produce unrelated definitions). I’d like to be able to reexport only the future-related stuff, without sockets and everything.

arnetheduck commented 1 year ago

See https://github.com/status-im/nim-chronos/pull/350 - comments welcome as well, on that PR

SirNickolas commented 1 year ago

Sorry for making a duplicate. Looking forward to see it merged!