We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd436b commit ffbbee0Copy full SHA for ffbbee0
codex/purchasing/states/submitted.nim
@@ -30,12 +30,12 @@ method run*(
30
requestId = purchase.requestId
31
32
proc wait() {.async.} =
33
- let done = newFuture[void]()
+ let done = newAsyncEvent()
34
proc callback(_: RequestId) =
35
- done.complete()
+ done.fire()
36
37
let subscription = await market.subscribeFulfillment(request.id, callback)
38
- await done
+ await done.wait()
39
await subscription.unsubscribe()
40
41
proc withTimeout(future: Future[void]) {.async.} =
0 commit comments