Last active
February 21, 2024 15:54
-
-
Save vahidvdn/3c1f956be081fbac040881cd1c9406b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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