ProtoFlux:Delay: Difference between revisions

From Resonite Wiki
m 989onan moved page ProtoFlux:Delay (Flow) to ProtoFlux:Delay over redirect: Misspelled title: This does not collide, utility is a "Delay Value" not "Delay"
Finish Delay ProtoFlux Node Page
Line 14: Line 14:
|}}
|}}


Accepted types for <code>Duration</code> are: [[Type:Double | Double]], [[Type:Float | Float]], [[Type:Int | Int]] and [[Type:TimeSpan | TimeSpan]].
Delay is a ProtoFlux node that allows for delaying an [[Impulses#Async|Async]] execution for the provided Duration (Sudo-Generic) before continuing.


== Inputs ==


{{Stub}}
=== * ([[Impulses#Async|AsyncCall]]) ===
<i> needs to be standardized </i>
 
Start the delay.
 
=== Duration (Sudo-Generic) ===
 
How long to delay for in seconds.
 
Examples: [[Type:Double | Double]], [[Type:Float | Float]], [[Type:Int | Int]] and [[Type:TimeSpan | TimeSpan]].
 
== Outputs ==
 
=== Next ([[Impulses|Continuation]]) ===
 
Fires after Duration (Sudo-Generic) time has passed after * ([[Impulses#Async|AsyncCall]]) was called.
 
=== OnTriggered ([[Impulses#Async|SyncResumption]]) ===
 
Fires instantly after * ([[Impulses#Async|AsyncCall]]) is called.
 
== Examples ==
 
<gallery widths=480px heights=480px>
File:Protoflux_example_Delay.webp|Delay being used as a way to cause something to happen a bit after someone presses a button.
</gallery>


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Revision as of 17:48, 16 February 2024

Delay
*
Next
Duration
OnTriggered
Flow

Delay is a ProtoFlux node that allows for delaying an Async execution for the provided Duration (Sudo-Generic) before continuing.

Inputs

* (AsyncCall)

Start the delay.

Duration (Sudo-Generic)

How long to delay for in seconds.

Examples: Double, Float, Int and TimeSpan.

Outputs

Next (Continuation)

Fires after Duration (Sudo-Generic) time has passed after * (AsyncCall) was called.

OnTriggered (SyncResumption)

Fires instantly after * (AsyncCall) is called.

Examples