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

Dispatchers cleanup #1022

Merged
merged 5 commits into from
Mar 19, 2019
Merged

Dispatchers cleanup #1022

merged 5 commits into from
Mar 19, 2019

Conversation

GarthSnyder
Copy link
Collaborator

A few small things:

  • I noticed some incorrect access levels when using this from a client project, so I went back and did an access level review.

  • Added DispatchQueue wrappers for Dispatcher implementations, so you can now say, e.g.

let dispatcher = RateLimitedDispatcher(maxDispatches: 10, perInterval: 1, queue: .main)
  • Added tests for those wrappers

  • Moved Dispatcher implementations to a subdirectory

  • The compiler started complaining about Sequence.count(where:) in Xcode 10.2 beta 4. I'm not sure why. Rewrote.

@mxcl mxcl merged commit 97bb3c0 into mxcl:v7 Mar 19, 2019
mxcl added a commit that referenced this pull request Mar 26, 2019
mxcl added a commit that referenced this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants