wip: explore removing delays(6)
This commit is contained in:
parent
dfdca9f5e9
commit
ba8d90038d
@ -119,6 +119,8 @@ fromTransform t =
|
||||
maybeYield1
|
||||
pure $ Loop { error, cancel }
|
||||
O.WriteWouldBlock -> do
|
||||
queueLen <- liftEffect $ O.readableLength t
|
||||
when (queueLen == 0) $ liftAff $ O.awaitReadableOrClosed t
|
||||
yieldWhileReadable
|
||||
liftAff $ O.awaitWritableOrClosed t
|
||||
pure $ Loop { error, cancel }
|
||||
|
Loading…
Reference in New Issue
Block a user