DecodeBytesInterpreter

class Object
trait Matchable
class Any

Type members

Types

type EitherParseErrorTState[A] = EitherT[[R] =>> State[Chunk[Byte], R], ParseError, A]

Value members

Concrete methods

def runProgramCancellably[F[_], A](readBytes: Int => F[Chunk[Byte]], program: DecodeBytes[A])(using F: MonadCancel[F, _])(using Make[F]): F[Either[ParseError, A]]

Run a DecodeBytes in such a way that a cancellation may take place at any time before a first read completes, and not anywhere else.

Run a DecodeBytes in such a way that a cancellation may take place at any time before a first read completes, and not anywhere else.