You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added conditionalBuffer because it was necessary to fix the semantics of executeAsync1Calm(With). Preventing logic loops when inputs get connected to outputs is tricky.. hope things are fixed now.
To be clear, I am ready to turn this into a PR, presuming that there is interest in having these included and that we decide on which module to put these in.
See https://gist.github.com/lspitzner/18e679006765b308e9dbc41b06e86bbb
gateGather
: an accumulating gatemaskCalmE
: behaves like throttle, but not controlled by time, but by input dynamicconditionalBuffer
: a buffer that can conditionally retain one input event valuefanBy
:(eventsWhenFalse, eventWhenTrue) = fanBy pred inputE
fanOn
:(eventsWhenFalse, eventWhenTrue) = fanOn boolBeh inputE
triggerDelay
: behaves like delay, but not controlled by time, but my a second input eventexecuteAsync1Calm
: perform an event asynchronously, but do not run more than one at a timeexecuteAsync1CalmWith
: with custom forker functiongateThrottle
: likethrottle
but without any accumulation. better for debouncing bursts.All names open for discussion.
Only
gateThrottle
actually uses time, so I doubt thatReflex.Time
is the right module, but not sure where else these would belong.The text was updated successfully, but these errors were encountered: