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/brightfutureshowever language misses such feature.
swift promise future promisekit
Comments
Post a Comment