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

Geo Designs

Geo Designs

View Profile

Rushabh patel

Rushabh Patel

View Profile

Reil Capital

Reil Capital

View Profile

Integrity Disability Hub

Integrity Disability Hub

View Profile

meshtextile

Meshtextile

View Profile

John Zhang

John Zhang

View Profile

Gayatri

Gayatri

View Profile

mbttechservice

Mbttechservice

View Profile

Preston Fairbanks

Preston Fairbanks

View Profile

Brett Burroughs

Brett Burroughs

View Profile