Skip to main content

wait_for_accounts

Function wait_for_accounts 

Source
async fn wait_for_accounts(
    workspace: &Arc<Workspace>,
    timeout: Duration,
) -> bool
Expand description

Hold until the accounts and the listener are ready, or timeout passes.

true when they settled, false at expiry; the caller decides what a hold that ran out means (the wave fires anyway and warns). The bound is the whole point - see start_boot_wave - so it is a parameter, which is what lets a test pin it at a millisecond instead of a minute.