Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.4 KB

File metadata and controls

37 lines (34 loc) · 1.4 KB

Sources

In CallbagKit a sinker subscribes to a source. Then that sinker reacts to whatever item or sequence of items the sources emits.

There are three types of sources in general.

  1. Listenable source which will emit items whenever there is an item available to be emitted.

  2. Pullable source emit items only upon request from sinker, an item per request.

  3. Single source is actually a Listenable source, but will only emit one item whenever it is available to be emitted.

  1. Creating
    1. Empty
    2. Never
    3. ThrowError
    4. From
    5. Of
    6. Just
    7. Interval
    8. Timer
  2. Multicasting
    1. Share
    2. PublishSubject
    3. AsyncSubject
    4. BehaviorSubject
    5. ReplaySubject
  3. Others
    1. Pullable
    2. Iteratable