I quickly merged ChanneledModel with Model, but there is more work to be done. There is no need to await inner promises in several of the methods. Instead, the postMessage call can happen in the resolve wrapper of the returned promise.
I think this is preferred because it is simpler. Less syntax and less code and same functionality.
I quickly merged ChanneledModel with Model, but there is more work to be done. There is no need to await inner promises in several of the methods. Instead, the postMessage call can happen in the resolve wrapper of the returned promise.
I think this is preferred because it is simpler. Less syntax and less code and same functionality.