Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

ControlNotificationStream.contains(_:)

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

View as Markdown

Declared in
ControlNotificationStream
Package
libtmux-swift
contains(_:) ( search : Self.Element ) → Bool
methodasync
methodasync
contains(_:)

Inherited from AsyncSequence.contains(_:)

Returns a Boolean value that indicates whether the asynchronous sequence contains the given element.

In this example, an asynchronous sequence called Counter produces Int values from 1 to 10. The contains(_:) method checks to see whether the sequence produces the value 5:

let containsFive = await Counter(howHigh: 10) .contains(5) print(containsFive) // Prints "true"

  • Parameter search: The element to find in the asynchronous sequence.
  • Returns: true if the method found the element in the asynchronous sequence; otherwise, false.

0 declared, 0 inherited

Esc

Type to search.