How about:
proc impl() =discard "..."
proc wrapperForLibUv(future: ???) {.cdecl.} =
try:
impl()
except:
future.setError()
RunBut I still don't understand the problem tbh.
How about:
proc impl() =discard "..."
proc wrapperForLibUv(future: ???) {.cdecl.} =
try:
impl()
except:
future.setError()
RunBut I still don't understand the problem tbh.