Define raises for async pragma for waitUntil

This commit is contained in:
Arnaud 2025-10-02 08:28:48 +02:00
parent 9c8879d8bb
commit 5eb5ace4f2
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

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.} =