# ControlNotificationStream

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/NotificationBroadcast.swift#L3
- **Page:** https://libtmux.org/reference/swift/controlnotificationstream/

One observer's control notifications with finite pending storage.

## Members

- `contains(where:)` (method) — Returns a Boolean value that indicates whether the asynchronous sequence contains an element that satisfies the given predicate.
- `allSatisfy(_:)` (method) — Returns a Boolean value that indicates whether all elements produced by the asynchronous sequence satisfy the given predicate.
- `map(_:)` (method) — Creates an asynchronous sequence that maps the given error-throwing closure over the asynchronous sequence’s elements.
- `flatMap(_:)` (method) — Creates an asynchronous sequence that concatenates the results of calling the given error-throwing transformation with each element of this sequence.
- `compactMap(_:)` (method) — Creates an asynchronous sequence that maps an error-throwing closure over the base sequence’s elements, omitting results that don't return a value.
- `min(by:)` (method) — Returns the minimum element in the asynchronous sequence, using the given predicate as the comparison between elements.
- `max(by:)` (method) — Returns the maximum element in the asynchronous sequence, using the given predicate as the comparison between elements.
- `first(where:)` (method) — Returns the first element of the sequence that satisfies the given predicate.
- `contains(_:)` (method) — Returns a Boolean value that indicates whether the asynchronous sequence contains the given element.
- `reduce(_:_:)` (method) — Returns the result of combining the elements of the asynchronous sequence using the given closure.
- `reduce(into:_:)` (method) — Returns the result of combining the elements of the asynchronous sequence using the given closure, given a mutable initial value.
- `prefix(while:)` (method) — Returns an asynchronous sequence, containing the initial, consecutive elements of the base sequence that satisfy the given predicate.
- `prefix(_:)` (method) — Returns an asynchronous sequence, up to the specified maximum length, containing the initial elements of the base asynchronous sequence.
- `filter(_:)` (method) — Creates an asynchronous sequence that contains, in order, the elements of the base sequence that satisfy the given predicate.
- `drop(while:)` (method) — Omits elements from the base asynchronous sequence until a given closure returns false, after which it passes through all remaining elements.
- `dropFirst(_:)` (method) — Omits a specified number of elements from the base asynchronous sequence, then passes through all remaining elements.
- `makeAsyncIterator()` (method) — Creates the asynchronous iterator that produces elements of this asynchronous sequence.
- `Iterator` (struct) — Iterates notifications with `TmuxError` as the failure type.
