Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230815

Problems async method

$
0
0

By chaining.

sign(food: string): Promise<string> {
  return ...;
}

seel(signed: string): Promise<string> {
  return ...;
}

deliver(seeled: string): void {
  ...;
}

signSeelAndDeliver(food: string): void  {
  sign(food)
    .then(signed => seel(signed))
    .then(seeled => deliver(seeled));
}


Viewing all articles
Browse latest Browse all 230815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>