-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change let to const. Remove test code from index.ts.
- Loading branch information
1 parent
47d3813
commit 40a2756
Showing
3 changed files
with
4 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
import { topic } from "./topics/topic" | ||
import { leader } from "./tabs/leader" | ||
import { Observable } from "rx" | ||
|
||
function start(f: () => void = () => {}) { | ||
leader(f) | ||
} | ||
|
||
const t = topic("Example"); | ||
|
||
start( () => { | ||
console.log("Ahora el líder soy yo"); | ||
|
||
t.observable.subscribe( e => console.log( e ) ) | ||
} ); | ||
|
||
Observable.interval(1000).subscribe( e => { | ||
t.send({ e }) | ||
} ); | ||
|
||
export { start } | ||
export { topic } |
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
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