fix: transform should read more than just 1 chunk after writing

This commit is contained in:
orion 2024-05-13 14:35:44 -05:00
parent 3db5cc44a9
commit b7bead090e
Signed by: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -97,7 +97,7 @@ fromTransform t =
yieldFromReadableHalf = do
res <- liftEffect (O.read t)
case res of
O.ReadJust a -> yield (Just a)
O.ReadJust a -> yield (Just a) *> yieldFromReadableHalf
O.ReadWouldBlock -> pure unit
O.ReadClosed -> yield Nothing *> pure unit
go { error, cancel } = do