Skip to content

Commit

Permalink
fix(notifier): make the Updater a Far object
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 4, 2022
1 parent 7ca2ffb commit 20707a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/notifier/src/notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const makeNotifierKit = (...args) => {
...baseNotifier,
});

const updater = harden({
const updater = Far('updater', {
updateState(state) {
if (final()) {
throw new Error('Cannot update state after termination.');
Expand Down Expand Up @@ -155,7 +155,6 @@ export const makeNotifierKit = (...args) => {
* @returns {Notifier<T>}
*/
export const makeNotifierFromAsyncIterable = asyncIterableP => {
/** @type {ERef<AsyncIterator<T>>} */
const iteratorP = E(asyncIterableP)[Symbol.asyncIterator]();

/** @type {Promise<UpdateRecord<T>>|undefined} */
Expand Down

0 comments on commit 20707a1

Please sign in to comment.