FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add the ability to specify RunLoop and RunLoopMode in `after` and `every` methods by madeinqc · Pull Request #38 · radex/SwiftyTimer · GitHub

This repository was archived by the owner on May 1, 2026. It is now read-only.

Repository navigation

Add the ability to specify RunLoop and RunLoopMode in after and every methods - #38

Open
madeinqc wants to merge 1 commit into
radex:masterfrom
madeinqc:master
Open

madeinqc wants to merge 1 commit into
radex:masterfrom
madeinqc:master

Conversation

madeinqc commented Aug 8, 2017

Copy link
Copy Markdown

This was required in my project to be able to use after and every methods for timers that need to update the UI. The timer needs to run in .commonModes to be able to update the UI while scrolling.

It keep the same behaviour as previously and the signature is backward compatible.
I added a new start function because the splat operator is not available in Swift, hence the need to create a new one that takes an array as parameters.

Feedbacks are welcome, I will adjust the PR accordingly.

`every` methods while conserving the initial signature and behavior for
backward compatibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL