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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -