Created
December 10, 2021 17:11
-
-
Save obaranovskyi/f760e9b0104e146e83577aad520c160e 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
import { from } from 'rxjs'; | |
const fromPromise$ = from( | |
new Promise((resolve, reject) => { | |
console.log('Will be invoked only once, and right away.') | |
resolve(3); | |
}) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment