frintjs/frint

Proposal: Check availability of multiple Apps

Aperta

#425 aperta il 7 lug 2018

 (1 commento) (1 reazione) (0 assegnatari)JavaScript (37 fork)batch import
help wantedproposal

Metriche repository

Star
 (746 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Currently

We can trigger something as soon as our desired App is available, via this API:

rootApp.getAppOnceAvailable$('SomeAppName')
  .subscribe(someApp => console.log(someApp));

Proposal

It would be handy if we can check the availability of multiple apps together:

rootApp.getAppOnceAvailable$(['SomeApp', 'AnotherApp'])
  .subscribe(function (someApp, anotherApp) {
    // fires once, when both `SomeApp` and `AnotherApp` are available
  });

Guida contributor