PHP code example of akondas / exspecto

1. Go to this page and download the library: Download akondas/exspecto library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

akondas / exspecto example snippets


await()->atMost(1)->until(function() {
    return customerStatusIsUpdated();
});

await()->atMost(3)->pollInterval(200)->until(function() {
    return customerStatusIsUpdated();
});

$value = await()->atMost(3)->pollInterval(200)->on(fn() => getValue());