{"body":"\ntemplate pollFlowVar[T](flowVar: FlowVar[T], body: untyped): untyped =\n  ## Handler for checking the result of a flowVar inside of an async proc.\n  while true:\n    # Check if the spawn FlowVar has finished.\n    if flowVar.isReady():\n      # If so, execute the handler body.\n      body\n    else:\n      # Otherwise, yield in order to return control back to the main event loop.\n      yield sleepAsync 1\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/41ADG9Iv","modified":1499291842,"id":"41ADG9Iv","size":402,"lines":11,"own_paste":false,"theme":"","date":1499291842}