Timeline for Architecture for working with several devices
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 21, 2018 at 11:31 | comment | added | Neil | @VladimirBershov Here an example in Java. Again, I don't know the language you're using but it's fairly straightforward. Both threads share an instance of Future, and once the value is ready, the one doing the call will assign the internal value of Future. When get is called and result is already present, it simply returns it. Otherwise it'll wait for a notification that value has been assigned. | |
| Mar 21, 2018 at 11:30 | vote | accept | Vladimir Bershov | ||
| Mar 21, 2018 at 11:24 | comment | added | Vladimir Bershov | Could you please explain or give a link for how does one make a logic on Futures? | |
| Mar 21, 2018 at 8:39 | history | answered | Neil | CC BY-SA 3.0 |