promise - Are there anything similar to Java's "Future" in Swift? -



promise - Are there anything similar to Java's "Future" in Swift? -

java has future or futuretask can run task in new thread. then, homecoming execution result original thread. there feature in swift can accomplish that?

you're looking kind of language construction called futures , promises. can find examples, like:

https://bitbucket.org/al45tair/async (c#-like async/await primitives in swift) https://github.com/mxcl/promisekit (promise kit http://promisekit.org/) mentioned before https://github.com/thomvis/brightfutures

however language misses such feature.

swift promise future promisekit

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -