Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
(Also, it should use try_success(), not success().)
Details aside, a proper implementation also should cancel the callback when the promise fails (so the extra state here is the callout-reference).