Define raises for async pragma for waitUntil

This commit is contained in:
Arnaud 2025-10-02 08:28:48 +02:00 committed by Eric
parent 5659c0d320
commit bafca77e13
No known key found for this signature in database

View File

@ -1,3 +1,5 @@
{.push raises: [].}
import pkg/chronos
import pkg/stew/endians2
import pkg/upraises
@ -11,7 +13,9 @@ type
method now*(clock: Clock): SecondsSince1970 {.base, gcsafe, upraises: [].} =
raiseAssert "not implemented"
method waitUntil*(clock: Clock, time: SecondsSince1970) {.base, async.} =
method waitUntil*(
clock: Clock, time: SecondsSince1970
) {.base, async: (raises: [CancelledError]).} =
raiseAssert "not implemented"
method start*(clock: Clock) {.base, async.} =