Pipedream - Simulate Timeout
Some useful snippets for quickly emulating an endpoint behavior on pipedream
Timeout
export default defineComponent({
async run({ steps, $ }) {
// delay this step for 30 seconds
const delay = 30000;
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve('timer ended')
}, delay)
})
}
});
Last modified: 12 March 2024