* Say, I started new project and it has following code: 
[https://github.com/Guevara-chan/UniGrab/blob/master/src/core.nim](https://github.com/Guevara-chan/UniGrab/blob/master/src/core.nim)
  * Say, with "-assertions:off" in nim.cfg it works like wonder.
  * Say, without "-assertions:off" in 1 of, say, 5 executions it fails 
miserably with: 
    
        \lib\pure\asyncdispatch.nim(1839) waitFor
    \lib\pure\asyncdispatch.nim(1533) poll
    \lib\pure\asyncdispatch.nim(373) runOnce
    \lib\pure\asyncdispatch.nim(210) processPendingCallbacks
    \lib\pure\asyncmacro.nim(34) getContent_continue
    \lib\pure\httpclient.nim(1034) getContentIter
    \lib\pure\asyncfutures.nim(182) complete
    \lib\system\assertions.nim(27) failedAssertImpl
    \lib\system\assertions.nim(20) raiseAssert
    ]\lib\system\fatal.nim(39) sysFatal
    Error: unhandled exception: \lib\pure\asyncfutures.nim(182, 9) 
`future.error ==
        nil`  [AssertionError]
    
    
    Run




How can it be and how should I fight without turning assertions off completely ?

Reply via email to