waitForLookupResults

Given an int id, monitors the lookupBucket until a value with that key becomes available, delaying itself in between checks.

If it resolves, it returns that value. If it doesn't resolve within Timeout.httpGET*2 seconds, it signals failure by instead returning an empty BashLookupResult.init.

version(WithBashPlugin)
private
waitForLookupResults
(,
const int id
)

Parameters

plugin BashPlugin

The current BashPlugin.

id int

The int id key to monitor BashPlugin.lookupBucket for.

Return Value

Type: auto

A BashLookupResult as discovered in the lookupBucket, or a BashLookupResult.init if there were none to be found within Timeout.httpGET seconds.