make streams.close more forgiving in order to break less code out there

This commit is contained in:
Araq
2019-02-06 15:51:21 +01:00
parent b5991f52b9
commit 035134de42

View File

@@ -46,7 +46,7 @@ type
## accessible so that a stream implementation
## can override them.
closeImpl*: proc (s: Stream)
{.nimcall, raises: [Defect, IOError, OSError], tags: [], gcsafe.}
{.nimcall, raises: [Exception, IOError, OSError], tags: [ReadIOEffect, WriteIOEffect], gcsafe.}
atEndImpl*: proc (s: Stream): bool
{.nimcall, raises: [Defect, IOError, OSError], tags: [], gcsafe.}
setPositionImpl*: proc (s: Stream, pos: int)