ControlNotificationStream.contains(_:)
Returns a Boolean value that indicates whether the asynchronous sequence contains the given element.
Source and package
- Qualified name
-
ControlNotification Stream. contains(_:) - Declared in
ControlNotificationStream- Package
- libtmux-swift
-
Inherited from
AsyncSequence.contains(_:)Description#
In this example, an asynchronous sequence called
CounterproducesIntvalues from1to10. Thecontains(_:)method checks to see whether the sequence produces the value5:let containsFive = await Counter(howHigh: 10) .contains(5) print(containsFive) // Prints "true"
- Parameter search: The element to find in the asynchronous sequence.
- Returns:
trueif the method found the element in the asynchronous sequence; otherwise,false.