Open EvanKirshenbaum opened 5 months ago
Looking at System.call_after and System.after_tick, the delta and fn arguments order is swapped:
System.call_after
System.after_tick
delta
fn
def call_after(self, delta: Time, fn: TimerFunc def after_tick(self, fn: ClockCallback, *, delta: DelayType=Ticks.ZERO)
I wonder if we want to make the arguments order consistent, either delta first or fn first.
The argument order follows the name "Call after delta (this function)" and "After the tick call this function (this many ticks away)".
Looking at
System.call_after
andSystem.after_tick
, thedelta
andfn
arguments order is swapped:I wonder if we want to make the arguments order consistent, either
delta
first orfn
first.Migrated from internal repository. Originally created by Rares Vernica on Jun 21, 2022 at 5:50 PM PDT.