/**
 * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info.
 *
 * @author David Sehnal <david.sehnal@gmail.com>
 */

import { RuntimeContext } from './runtime-context'

class SynchronousRuntimeContext implements RuntimeContext {
    shouldUpdate = false;
    isSynchronous = true;
    update(progress: string | Partial<RuntimeContext.ProgressUpdate>, dontNotify?: boolean): Promise<void> | void { }
}

export const SyncRuntimeContext = new SynchronousRuntimeContext();