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

ControlSession.assertIsolated(_:file:line:)

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
ControlSession
Package
libtmux-swift
assertIsolated(_:file:line:) ( message : () -> String , file : StaticString , line : UInt ) → ()
method
method
assertIsolated(_:file:line:)

Inherited from Actor.assertIsolated(_:file:line:)

Stops program execution if the current task is not executing on this actor's serial executor.

This function's effect varies depending on the build flag used:

  • In playgrounds and -Onone builds (the default for Xcode's Debug configuration), stops program execution in a debuggable state after printing message.
  • In -O builds (the default for Xcode's Release configuration), the isolation check is not performed and there are no effects.
  • Note: This check is performed against the actor's serial executor, meaning that / if another actor uses the same serial executor--by using that actor's serial executor as its own Actor/unownedExecutor--this check will succeed , as from a concurrency safety perspective, the serial executor guarantees mutual exclusion of those two actors.
  • Parameters:
    • message: The message to print if the assertion fails.
    • file: The file name to print if the assertion fails. The default is where this method was called.
    • line: The line number to print if the assertion fails The default is where this method was called.

0 declared, 0 inherited

Esc

Type to search.