mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 03:32:32 +00:00
Make clearCallbacks() public. (#7753)
This commit is contained in:
committed by
Andreas Rumpf
parent
78e946c450
commit
5063437b0c
@@ -177,7 +177,7 @@ proc fail*[T](future: Future[T], error: ref Exception) =
|
||||
if getStackTrace(error) == "": getStackTrace() else: getStackTrace(error)
|
||||
future.callbacks.call()
|
||||
|
||||
proc clearCallbacks(future: FutureBase) =
|
||||
proc clearCallbacks*(future: FutureBase) =
|
||||
future.callbacks.function = nil
|
||||
future.callbacks.next = nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user