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 an optional target queue to for database operations #801

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Apr 21, 2018

  1. Add an optional target queue to for database operations

    The optional target queue is useful for synchronising other work with
    respect to database operations. Provided the target queue is also a
    serial queue, work submitted to the private connection queue and work
    submitted directly to the target queue will still be executed in serial.
    
    The queue context is now set on the target queue if present. The
    connection queue inherits values set on the target queue, so the call to
    `DispatchQueue.getSpecific`, using `queueKey`, returns `queueContext` as
    expected. For this logic to still be thread-safe, the target queue must
    be a serial queue. `queueKey` is now an instance variable so that every
    connection gets a unique key, ensuring that connections can't write over
    one another's context variables.
    
    The `attributes:` parameter is also removed from the call to initialise
    the database queue, as `[]` (i.e., serial) is already the default.
    sharplet committed Apr 21, 2018
    Configuration menu
    Copy the full SHA
    3fdec83 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2018

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