add closed flag
This commit is contained in:
parent
f24c866a30
commit
6e5641dc48
|
@ -10,6 +10,7 @@
|
||||||
import chronos
|
import chronos
|
||||||
|
|
||||||
type ReadWrite* = ref object of RootObj
|
type ReadWrite* = ref object of RootObj
|
||||||
|
closed*: bool
|
||||||
|
|
||||||
method read*(s: ReadWrite, n = -1): Future[seq[byte]]
|
method read*(s: ReadWrite, n = -1): Future[seq[byte]]
|
||||||
{.base, async.} =
|
{.base, async.} =
|
||||||
|
|
Loading…
Reference in New Issue