PHP code example of medz / stream-wrapper-interface
1. Go to this page and download the library: Download medz/stream-wrapper-interface 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/ */
medz / stream-wrapper-interface example snippets
ts
await gait.step("plain step", async (ctx) => {
return {
name: ctx.step.name,
count: ctx.step.count,
attempt: ctx.attempt,
};
});
await gait.step(
"configured step",
{ retries: { limit: 3, delay: 1_000 } },
async () => {
return "done";
},
);