Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resource.allocated() to decompose Resource into it's allocate and… #2820

Merged
merged 12 commits into from Sep 14, 2022

Commits on Sep 7, 2022

  1. Add Resource.allocated() to decompose Resource into it's allocate and…

    … release
    
    Decomposes a [Resource]<A> into a Pair<suspend () -> A, suspend (A, ExitCase) -> Unit>, containing the allocation and release functions which make up the [Resource].
    
    This can be used to integrate Resources with code which cannot be run within the [use] function.
    custommonkey committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    bde7ec6 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. Update arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/…

    …fx/coroutines/Resource.kt
    
    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    custommonkey and nomisRev committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    7a3a40b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d4eaa4 View commit details
    Browse the repository at this point in the history
  3. Update api

    custommonkey committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    80f5531 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cca8e27 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    58720a3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2f4dec View commit details
    Browse the repository at this point in the history
  7. Fix doc examples

    custommonkey committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    1d413dd View commit details
    Browse the repository at this point in the history
  8. Improve allocated tests

    custommonkey committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    e48a8ec View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Configuration menu
    Copy the full SHA
    93c37d8 View commit details
    Browse the repository at this point in the history
  2. Fix compile error

    custommonkey committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    61564c9 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Configuration menu
    Copy the full SHA
    5685c58 View commit details
    Browse the repository at this point in the history