Closed arnetheduck closed 10 months ago
Per discussion in https://github.com/status-im/nim-chronos/pull/251#issuecomment-1559233139, async: (parameters..) is introduced as a way to customize the async transformation instead of relying on separate keywords (like asyncraises).
async: (parameters..)
Two parameters are available as of now:
raises: controls the exception effect tracking raw: disables body transformation
raises
raw
Parameters are added to async as a tuple allowing more params to be added easily in the future:
async
proc f() {.async: (name: value, ...).}
Per discussion in https://github.com/status-im/nim-chronos/pull/251#issuecomment-1559233139,
async: (parameters..)
is introduced as a way to customize the async transformation instead of relying on separate keywords (like asyncraises).Two parameters are available as of now:
raises
: controls the exception effect trackingraw
: disables body transformationParameters are added to
async
as a tuple allowing more params to be added easily in the future: