fix deprecations and other warnings (#13748)
This commit is contained in:
parent
182d3c16e3
commit
5b55aa52d0
22 changed files with 63 additions and 66 deletions
|
|
@ -6,11 +6,10 @@ discard """
|
|||
|
||||
import asyncdispatch
|
||||
import asyncfile
|
||||
import times
|
||||
|
||||
var asyncStdout = 1.AsyncFD.newAsyncFile()
|
||||
proc doStuff: Future[void] {.async.} =
|
||||
await asyncStdout.write "hello world\n"
|
||||
|
||||
let fut = doStuff()
|
||||
doAssert fut.finished, "Poll is needed unnecessarily. See #6846."
|
||||
doAssert fut.finished, "Poll is needed unnecessarily. See #6846."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue