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

i'm hope obtain cache data synchronously #33

Closed
arden opened this issue Apr 25, 2016 · 4 comments
Closed

i'm hope obtain cache data synchronously #33

arden opened this issue Apr 25, 2016 · 4 comments

Comments

@arden
Copy link

arden commented Apr 25, 2016

cache.object("data") { (data: NSData?) in
// Use your NSData object
}

now, obtain cache data is async. but i'm hope to sync like this.

let data = cache.object("data")

did you have any plan to support it?

@vadymmarkov
Copy link
Contributor

@arden We are actually considering this feature for the next major release. We'll keep you posted 😉

@onmyway133
Copy link
Contributor

@vadymmarkov or there will be a function in Sugar that convert async to sync ? 😬

@vadymmarkov
Copy link
Contributor

@onmyway133 To do that you'll probably need an access to the dispatch queue, right?

@vadymmarkov
Copy link
Contributor

or you mean some crazy stuff like semaphore? 😄

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

No branches or pull requests

3 participants