promise
How to get the argument for promise::set_exception(x)?
I found in several places on how a promise should be used references to copy_exception, but I can not find it in the current FDIS. Is there an alternative way on how to use set_exception() since those[详细]
2023-04-08 01:30 分类:问答Use of CommonJS promises: rejection vs. exceptions
I have a function, downloadAsync(), that returns a CommonJS promise (using Q). It can fail in two ways:[详细]
2023-04-06 02:02 分类:问答Designing an async API in Python
(Note: this question is strictly about the design of the API, not about how to implement it; i.e. I only care about what the client of my API sees here, not what I have to do to make it work.)[详细]
2023-04-02 10:29 分类:问答What is the shorthand for setting up dependencies in jQuery deferred objects?
Do jQuery deferred objects have any shorthand to set up dependencies, i.e. "when I\'m done, that thing is done as well?"The belo开发者_运维问答w feels cumbersome:[详细]
2023-03-23 13:30 分类:问答How do I reverse set_value() and 'deactivate' a promise?
I have a total n00b question here on synchronization. I have a \'writer\' thread which assigns a different value \'p\' to a promise at each iteration. I need \'reader\' threads which wait for shared_f[详细]
2023-03-16 19:30 分类:问答Replacing system calls (syscalls) in Linux 2.6+
I\'m looking into writing a userland threading library, since there seems to be no active work in this area, and I believe the C++0x promises and futuresmay give this model some power. Unfortunately,[详细]
2023-03-13 18:20 分类:问答jquery deferred turn failure into success
So in using jQuery deferreds and $.when to load many objects in parallel. $.when( a.ajax(), b.ajax(), c.ajax()[详细]
2023-03-10 16:24 分类:问答Tail-recursion and scalaz promises
I am currently playing with Scalaz non-blocking futures aka. Promises. I am struggling to make the following function tail-recursive:[详细]
2023-03-04 03:58 分类:问答Does a wait on Scala Future block thread?
When I wait for result of Scala Future, does it behave more like receive, or like react, i.e. does it block a thread, or sched开发者_StackOverflow中文版ules a continuation after result if available?Ye[详细]
2023-02-24 02:00 分类:问答《I Promise You》MP3歌词-Michael Bolton?
I Promise You Michael Bolton 专辑:Greatest Hits 1985-1995 语种: 英语 流派:Pop 唱片公司:索尼音乐[详细]
2023-02-20 12:16 分类:问答