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

NotificationCenter? #36

Open
Droppix opened this issue Mar 15, 2018 · 2 comments
Open

NotificationCenter? #36

Droppix opened this issue Mar 15, 2018 · 2 comments

Comments

@Droppix
Copy link

Droppix commented Mar 15, 2018

Hi,

NotificationCenter integration?

@vhesener
Copy link
Owner

Hi @Droppix, are you aware that NotificationCenter has a built-in API based on closures? If so, can you help me understand how Closures can help? Thanks!

@Droppix
Copy link
Author

Droppix commented Mar 16, 2018

Sorry for not having been clear...
It would have been interesting to make a simplification to the API "Apple", for example :

NotificationCenter.default.add(observer: self, name: "") { _ in} NotificationCenter.default.removeObserver(self)
same for Timer :
Timer.scheduledTimer(timeInterval: 1.0) {}

And above all it will allow me to avoid using more:)
[https://github.com/ManueGE/Actions]

Thanks

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

No branches or pull requests

2 participants