QLoop<Input, Output>
- type:
class - conforms to:
QLoopIterable
-
init( )
-
init(onChange:
(Output?)->()) -
init(iterator:
QLoopIterating, onChange:(Output?)->()) -
init(iterator:
QLoopIterating, onChange:(Output?)->(), onError:(Error)->())
-
input:
QLAnchor<Input> -
output:
QLAnchor<Output> -
discontinue:
Bool -
shouldResume:
Bool -
onFinal:
(Input?)->() -
onChange:
(Input?)->() -
onError:
(Error)->() -
iterator:
QLoopIterating
-
bind(path:
QLPath) -
bind(segment:
QLSegment) -
destroy( )
-
perform( )
-
perform(
Input?)
-
findSegments(with operationId:
AnyHashable) ->[AnySegment] -
describeOperationPath( ) ->
String
When subscribing to loop events, understand that both onChange and onFinal calls
will occur on final loop output. When using the default iteration of "single", then there
is no reason to subscribe to both events. When using one of the infinitely continuous modes,
however, only onChange will ever get called.
onChangeis called on every output changeonFinalis called for the last output when using iterations that have a finite state (in addition toonChange)onFinalmay also be called upon the next iteration if thediscontinueflag gets set (and the iterator being used returns false, as all of the included ones do in this situation.)