Created
October 10, 2020 07:19
-
-
Save LironHazan/3b25e96c3bb6b4adef3955c8dc186b57 to your computer and use it in GitHub Desktop.
I promised I'll switch to new Observable - for our rxjs blog post
This file contains hidden or 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
private async getTheBand(name: string): Promise<Artist> { | |
const artist = await import('../../../wasm/pkg/rust_wasm_part'); | |
return artist.query_band(name); | |
} | |
getTheBand$(name): Observable<Artist> { | |
return defer(() => this.getTheBand(name)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment