Explain Wait for multiple non nested callbacks?

Stoodq08 Nov, 2019News

Say I have two (or more) asynchronous operations option1 and option2 that call a callback function upon completion. How do I best wait for both to complete before starting option3? I am not able to nest them inside of each other (i.e. first starting option1, then starting option2 inside of option1callback()) (I of course also do not know which of these is going to complete first, but that doesn't really matter I guess)

Recent Profiles

Omega Offers

Omega Offers

View Profile

Alex Horse

Alex Horse

View Profile

Business Manager

Business Manager

View Profile

Marwa Elbry

Marwa Elbry

View Profile

Rikvip

Rikvip

View Profile

星空体育 App

星空体育 App

View Profile

Dynasty Construction & Roofing

Dynasty Construction & Roofing

View Profile

yaponsky boh

Yaponsky Boh

View Profile