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 TitleLookupResult.init.

version(WithWebtitlePlugin)
private
waitForLookupResults

Parameters

plugin WebtitlePlugin

The current WebtitlePlugin.

id int

int id key to monitor WebtitlePlugin.lookupBucket for.

Return Value

Type: auto

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