Classes

The following classes are available globally.

  • The ChannelWriter class writes values to a channel. It’s a reference type so Channels have a common object to add handlers to.

    See more

    Declaration

    Swift

    public class ChannelWriter<T>
  • A thread-safe lock around a value of type T.

    See more

    Declaration

    Swift

    public class Lock<T>
  • The Promise type is a backend for the Future type. It manages completion handlers to be called in the future. Use Promise to provide a Future that you can complete.

    See more

    Declaration

    Swift

    public class Promise<T>