UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

24 lines (22 loc) 1.13 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ILogService } from '../../log/common/log.mjs'; import { IOnDidTerminateSharedProcessWorkerProcess, ISharedProcessWorkerConfiguration, ISharedProcessWorkerService, } from '../common/sharedProcessWorkerService.mjs'; export declare class SharedProcessWorkerService implements ISharedProcessWorkerService { private readonly logService; readonly _serviceBrand: undefined; private readonly workers; private readonly processeDisposables; private readonly processResolvers; constructor(logService: ILogService); createWorker(configuration: ISharedProcessWorkerConfiguration): Promise<IOnDidTerminateSharedProcessWorkerProcess>; private getOrCreateWebWorker; disposeWorker(configuration: ISharedProcessWorkerConfiguration): Promise<void>; private doDisposeWorker; }