Created
May 3, 2019 08:58
-
-
Save oed/929f4a38f129e60e469a001a5db8eb55 to your computer and use it in GitHub Desktop.
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
| const box = await Box.openBox(<eth-address>) | |
| const boxSyncPromise = new Promise((resolve, reject) => box.onSyncDone(resolve)) | |
| let livepeerSpace | |
| const spaceSyncPromise = new Promise((resolve, reject) => { | |
| livepeerSpace = await box.openSpace('livepeer', { onSyncDone: resolve }) | |
| }) | |
| await boxSyncPromise | |
| await spaceSyncPromise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment