def tick.next
import bend-kit-runner@0.13.0.1/runner.bend as Runnerimport Base
1586# The next message. While an attempt runs, it waits for one; when none runs, it takes one only when the inbox holds one.
1587def tick.next(-A: Data, r: Runner<A>) -> IO(Runner<A> & Maybe<&1, Msg<A>>):
1588 Runner{j, s, p, c, ib, fs} = r
1589 tick.wait(A, flights.none(A, fs), j, s, p, c, ib)