frintjs/frint

Proposal: Check availability of multiple Apps

Aberta

#425 aberto em 7 de jul. de 2018

 (1 comentário) (1 reação) (0 responsável)JavaScript (37 forks)batch import
help wantedproposal

Métricas do repositório

Stars
 (746 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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
  });

Guia do colaborador