Added workflow

This commit is contained in:
2026-01-20 15:28:38 +01:00
parent 237b40ed2e
commit 4cce216e4e
4 changed files with 8 additions and 22 deletions

View File

@@ -34,10 +34,7 @@ impl BuilderCoroutine {
None => panic!("Before the stream ends, we should have gotten a Halt"),
Some(Command::Halt(expr)) => expr,
Some(Command::Execute(expr, reply)) => call(
lambda(0, [seq(
[arg(0)],
call(Replier { reply, builder: self }.to_gen().await, [arg(0)]),
)]),
lambda(0, [seq([arg(0)], call(Replier { reply, builder: self }.to_gen().await, [arg(0)]))]),
[expr],
),
Some(Command::Register(expr, reply)) =>
@@ -67,8 +64,8 @@ impl OwnedAtom for Replier {
pub async fn exec<R: ToExpr>(f: impl for<'a> AsyncFnOnce(ExecHandle<'a>) -> R + 'static) -> GExpr {
let (cmd_snd, cmd_recv) = channel(0);
let halt = async { Command::Halt(f(ExecHandle(cmd_snd, PhantomData)).await.to_gen().await) }
.into_stream();
let halt =
async { Command::Halt(f(ExecHandle(cmd_snd, PhantomData)).await.to_gen().await) }.into_stream();
let coro = BuilderCoroutine(Rc::new(BuilderCoroutineData {
receiver: Mutex::new(stream::select(halt, cmd_recv).boxed_local()),
}));

View File

@@ -3,6 +3,7 @@ use orchid_api as api;
pub mod atom;
pub mod atom_owned;
pub mod atom_thin;
pub mod binary;
pub mod conv;
pub mod coroutine_exec;
pub mod entrypoint;
@@ -20,4 +21,3 @@ pub mod system;
pub mod system_ctor;
pub mod tokio;
pub mod tree;
pub mod binary;