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

Make recursive calls to flatMap stack safe #44

Merged
merged 4 commits into from Dec 31, 2019

Commits on Dec 17, 2019

  1. Make recursive calls to flatMap stack safe

    To make recursive algorithms easier to implement this pushes any
    nested callbacks in flatMap onto a 'trampoline' which means only one
    can run at any time. This is useful when synchronous futures are
    created and used in recursive functions.
    tom committed Dec 17, 2019
    Configuration menu
    Copy the full SHA
    488a824 View commit details
    Browse the repository at this point in the history
  2. Adds constructor option to opt-in for trampoline

    Use polymorphic variants for ease of use and to support the option
    of passing a parameterised version in future with user specified executor
    
    Keeps backwards compatibility.
    tom committed Dec 17, 2019
    Configuration menu
    Copy the full SHA
    59f03b3 View commit details
    Browse the repository at this point in the history
  3. Address feedback and update README

    tom committed Dec 17, 2019
    Configuration menu
    Copy the full SHA
    d824fea View commit details
    Browse the repository at this point in the history
  4. Add to interface file

    tom committed Dec 17, 2019
    Configuration menu
    Copy the full SHA
    baf85e9 View commit details
    Browse the repository at this point in the history