|
|
|
|
|
by naasking
1086 days ago
|
|
> They don't, though. They don't indicate if the message got through. They don't indicate if you can safely retry. Their failure mode is exactly as opaque or as transparent as synchronous calls. The promise is at the remote end. Promise resolution is idempotent, so retries always resolve to the same value. These are correct promise semantics as pioneered in the E language. |
|
What? The promise is local, so what do you mean "the promise is at the remote end?"
> Promise resolution is idempotent,
No. It is only run once (whether resolve or success), that does not mean it's idempotent.
Just like exceptions for synchronous code, or error returns.