mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 06:23:06 +00:00
Reraise cancelled error
This commit is contained in:
parent
070a9a150a
commit
5ef45d30f1
@ -41,6 +41,8 @@ method waitUntil*(
|
|||||||
let future = newFuture[void]()
|
let future = newFuture[void]()
|
||||||
clock.waiting.add(Waiting(until: time, future: future))
|
clock.waiting.add(Waiting(until: time, future: future))
|
||||||
await future
|
await future
|
||||||
|
except CancelledError as e:
|
||||||
|
raise e
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user