function Channel() {
    if (typeof self !== 'undefined' && self.window !== self) {
        this._enterWorkerMode();
    }
}
Channels are being used for interacting with the UI Thread when running in
a Web Worker or with the UIManager/ Compositor when running in single
threaded mode (no Web Worker).

@class Channel
@constructor