Promise representation in sequence diagram

0 votes
asked Feb 8 in Question / help by Pavel Sosin
is it correct representation?

Entity Observer
Entity Observable
Entity Promise
activate Observer
create Observable
Observer -> Observable : run
activate Observable
create Promise
Observable -> Promise :deffer
Observable --> Observer : return promise

Observable -> Promise : resolve
deactivate Observable
Promise -> Observer : then
activate Observer
Observer -> Observer : processAsync
activate Observer
deactivate Observer

destroy Observable

Looks too bulky

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.