Skip to content

Instantly share code, notes, and snippets.

@vahidvdn
Last active February 21, 2024 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vahidvdn/3c1f956be081fbac040881cd1c9406b7 to your computer and use it in GitHub Desktop.
Save vahidvdn/3c1f956be081fbac040881cd1c9406b7 to your computer and use it in GitHub Desktop.
@Module({
providers: [
{
provide: 'MY_TIMEOUT',
useFactory: () => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(true)
}, 10000);
})
},
// inject: [...],
};
],
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment