Constructor
new AsyncSearch()
Classes
Members
cores :number
Number of concurrent expansions per batch
Type:
- number
max
Maximum queue size (selects the best max candidates).
queue
Queue controlling search order.
space
Expansion function describing the search space.
Must be (candidate:any) => AsyncIterable|Iterable|Promise<Iterable>|undefined.
start
Initial candidates (or Promises or AsyncEach of candidates) to seed the search.
Methods
(async, generator) batchIterator() → {Array.<any>}
Lazily iterate over candidates asynchronously in batches. Each batch contains up to cores candidates.
Yields:
- Type
- Array.<any>