Skip to content

Instantly share code, notes, and snippets.

@dhananjay431
Last active October 31, 2021 14:01
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 dhananjay431/631403293c28c2bc5f6658caf2276173 to your computer and use it in GitHub Desktop.
Save dhananjay431/631403293c28c2bc5f6658caf2276173 to your computer and use it in GitHub Desktop.
snippets
{
"Observable": {
"prefix": "$ob",
"body": [
"const observable = new Observable(subscriber => {",
" subscriber.next(1);",
" subscriber.next(2);",
" subscriber.next(3);",
" setTimeout(() => {",
" subscriber.next(4);",
" subscriber.complete();",
" }, 1000);",
"});"
],
"description": "Observable"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment