Skip to content

indigo-ce/error-client

Repository files navigation

🪻 error-client

A dependency client that handles error handling in apps using the Swift Composable Architecture (TCA). It is part of the Indigo Stack.

Usage

To use the error-client, you need to add it to your TCA app. Here’s a basic example of how to integrate it:

@Dependency(\.errorClient) var errorClient

// Subscribe to error events
Task {
  for await error in try await errorClient.subscribe() {
    // Handle errors as they occur
    print("Received error: \(error)")
  }
}

// Send an error to subscribers
try await errorClient.handle(someError)

License

This project is licensed under the MIT License. See the LICENSE file for details

About

Handles error propagation in TCA apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages