safe_executor 1.0.1 copy "safe_executor: ^1.0.1" to clipboard
safe_executor: ^1.0.1 copied to clipboard

A robust and lightweight Dart package to execute asynchronous functions safely, with support for retries, timeouts, and custom error mapping.

1.0.1 #

  • Initial release of the safe_executor package.
  • Provides the SafeExecutor.run method for safely executing asynchronous functions.
  • Includes a sealed Result class (Success and Failure) for robust and type-safe error handling.
  • Built-in support for:
    • Automatic retries on failure.
    • Timeouts to limit execution time.
    • Custom error mapping to transform exceptions into clean error types.
3
likes
160
points
138
downloads

Publisher

unverified uploader

Weekly Downloads

A robust and lightweight Dart package to execute asynchronous functions safely, with support for retries, timeouts, and custom error mapping.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on safe_executor