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

extendable updates #19

Merged
merged 2 commits into from Mar 22, 2018

Conversation

1 participant
@tanner0101
Copy link
Member

tanner0101 commented Mar 22, 2018

  • adds some additional convenience methods to Extend

You can use them like so:

extension DatabaseConnection {
    /// The current pipeline future.
    fileprivate var pipeline: Future<Void> {
        get { return extend.get(\DatabaseConnection.pipeline, default: .done(on: self)) }
        set { extend.set(\DatabaseConnection.pipeline, to: newValue) }
    }
}

tanner0101 added some commits Mar 22, 2018

@tanner0101 tanner0101 added this to the 1.0.0-rc.2.1 milestone Mar 22, 2018

@tanner0101 tanner0101 self-assigned this Mar 22, 2018

@tanner0101 tanner0101 merged commit d2b233b into master Mar 22, 2018

2 checks passed

ci/circleci: linux Your tests passed on CircleCI!
Details
ci/circleci: linux-vapor Your tests passed on CircleCI!
Details

@tanner0101 tanner0101 deleted the extendable-updates branch Mar 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment