From 31ff3862570eda2d1aa83dd7c11548a4e73e8e82 Mon Sep 17 00:00:00 2001 From: garrison Date: Sun, 1 Feb 2026 17:23:51 -0500 Subject: [PATCH] Add yield for now just for clock progress --- lib/trinity/scheduler.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/trinity/scheduler.ex b/lib/trinity/scheduler.ex index 26cc190..c94cb81 100644 --- a/lib/trinity/scheduler.ex +++ b/lib/trinity/scheduler.ex @@ -167,6 +167,7 @@ defmodule Trinity.Scheduler do # needed to avoid a race where the message is already in the queue so we never unsuspend # # TODO: we could perform a yield(0) here to ensure all calls to `receive_yield()` actually yield + Trinity.Scheduler.yield(10) case Trinity.Scheduler.receive_loop(receive_fun, ref, unquote(timeout), start) do # We re-use the same ref to detect a timeout ^ref -> unquote(timeout_value) -- 2.51.2