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

futures: sinkify #412

Closed arnetheduck closed 10 months ago

arnetheduck commented 1 year ago

this avoids copies here and there throughout the pipeline - ie copyString and friends can often be avoided when moving things into and out of futures

annoyingly, one has to sprinkle the codebase liberally with sink and move for the pipeline to work well - sink stuff generally works better in orc/arc

arnetheduck commented 1 year ago

blocked on https://github.com/nim-lang/Nim/issues/22175

arnetheduck commented 10 months ago

superseded by #475 which includes a workaround for the bug