Skip to content

Swift library that extends async/await concurrency.

License

Notifications You must be signed in to change notification settings

richardpiazza/AsyncPlus

Repository files navigation

AsyncPlus

Swift library extending async/await concurrency features.

Usage

Passthrough Sequences:

Wrappers around Async[Throwing]Stream that maintain continuation/termination logic.

Passthrough Subjects

Swift actor that maintains references to multiple passthrough sequences. This allows for a shared publisher similar to Combine PassthroughSubject.

Alternatives

Installation

This package is distributed using the Swift Package Manager. You can add it using Xcode or by listing it as a dependency in your Package.swift manifest:

let package = Package(
  ...
  dependencies: [
    .package(url: "https://github.com/richardpiazza/AsyncPlus.git", .upToNextMajor(from: "0.2.0")
  ],
  ...
  targets: [
    .target(
      name: "MyPackage",
      dependencies: [
        "AsyncPlus"
      ]
    )
  ]
)

Contribution

Contributions to AsyncPlus are welcomed and encouraged! See the Contribution Guide for more information.