TestGame/addons/reactivex/operators/_bufferwithtimeorcount.gd

10 lines
261 B
GDScript3
Raw Normal View History

2024-12-27 21:00:07 +01:00
static func buffer_with_time_or_count_(
timespan : float,
count : int,
scheduler : SchedulerBase = null
) -> Callable:
return GDRx.pipe.compose2(
GDRx.op.window_with_time_or_count(timespan, count, scheduler),
GDRx.op.flat_map(GDRx.op.to_iterable()),
)