def extract(self, data: Awaitable, tail: List[TransEffect], in_state: bool) -> Either[R, N]:
async def coro_map(run: Callable[[R], TransStep]) -> TransStep:
res = await data
return lift(run(res), in_state)
coro = cont(tail, False, coro_map) | data
return Lift(Propagate.one(CoroutineAlg(coro).pub))
评论列表
文章目录