It became apparent when writing out example docs in Databox that we need both singular and plural resource apis. Otherwise you CAN'T do a findResource and actually find all of them. And once you have both findResource and findResources, it just doesn't make sense to have a method called waitForResource that returns multiple.
This PR changes our resource APIs to the following:
waitForResource is renamed to waitForResources
waitForResource is now a singular resource lookup. There is no "done" function required if you use a filter function. The function escapes when you return.
findResource returns a single resource since the page loaded (http request, not in-page load)
findResources finds many resources since the page loaded (http request, not in-page load)
It became apparent when writing out example docs in Databox that we need both singular and plural resource apis. Otherwise you CAN'T do a findResource and actually find all of them. And once you have both
findResource
andfindResources
, it just doesn't make sense to have a method calledwaitForResource
that returns multiple.This PR changes our resource APIs to the following: