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

`async` `proc` types #346

Closed arnetheduck closed 1 year ago

arnetheduck commented 1 year ago

Allow type = proc(...) {.async.} for pre-declaring async callback types - in this case, the macro applies the correct transformation to the return type and adds the appropriate exception / gcsafe annotations