nim-chronos icon indicating copy to clipboard operation
nim-chronos copied to clipboard

Strict Future value

Open arnetheduck opened this issue 7 months ago • 2 comments

Strict future access is now always enabled, making it a panic to access value/error when the Future is still pending - read and readError raise catchable exceptions instead which may be preferable to use.

  • remove chronosStrictFutureAccess enabling its functionality by default
  • disallow setting a cancellation callback on a non-pending future

arnetheduck avatar Nov 15 '23 12:11 arnetheduck