mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-20 23:18:22 +00:00
Some cosmetic in Future[T] names.
This commit is contained in:
parent
c84d847b19
commit
adc9035b07
@ -83,7 +83,7 @@ proc acquire*(lock: AsyncLock) {.async.} =
|
||||
if not lock.locked:
|
||||
lock.locked = true
|
||||
else:
|
||||
var w = newFuture[void]("asynclock.acquire")
|
||||
var w = newFuture[void]("AsyncLock.acquire")
|
||||
lock.waiters.addLast(w)
|
||||
yield w
|
||||
lock.locked = true
|
||||
@ -141,7 +141,7 @@ proc wait*(event: AsyncEvent) {.async.} =
|
||||
if event.flag:
|
||||
discard
|
||||
else:
|
||||
var w = newFuture[void]("asyncevent.wait")
|
||||
var w = newFuture[void]("AsyncEvent.wait")
|
||||
event.waiters.addLast(w)
|
||||
yield w
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user