Skip to content

Latest commit

 

History

History
54 lines (28 loc) · 1007 Bytes

File metadata and controls

54 lines (28 loc) · 1007 Bytes

QLoop Reference


QLSerialSegment

QLSerialSegment<Input, Output>

  • type: class
  • conforms to: AnySegment

Creating
  • init(operationId: AnyHashable, operation: Operation, errorHandler: ErrorHandler?, output: QLAnchor<Output>?)

Instance Variables
  • input: QLAnchor<Input>

  • output: QLAnchor<Output>

  • operationId: AnyHashable

  • operationQueue: DispatchQueue


Diagnostics
  • findSegments(with operationId: AnyHashable) -> [AnySegment]

  • describeOperationPath( ) -> String


Discussion

Operation segments are the vehicles that drive your custom operations. Segments can be run independently, or linked together in order to form any number of complex sequences.

When connecting segments together, the input of the second gets assigned to the output of the first, and so on.

  • A segment only observes its own input.
  • A segment only runs its operation if it has an output assigned