Class: WebWorkerRemoteInstanceService
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:66
Implements
Constructors
new WebWorkerRemoteInstanceService()
new WebWorkerRemoteInstanceService(
_univerInstanceService,
_commandService,
_logService): WebWorkerRemoteInstanceService
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:67
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_logService | ILogService |
Returns
WebWorkerRemoteInstanceService
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
_commandService | readonly | ICommandService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:69 |
_logService | readonly | ILogService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:70 |
_univerInstanceService | readonly | IUniverInstanceService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:68 |
Methods
_applyMutation()
protected _applyMutation(mutationInfo): boolean
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:112
Parameters
Parameter | Type |
---|---|
mutationInfo | IMutationInfo |
Returns
boolean
createInstance()
createInstance(params): Promise<boolean>
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:83
Parameters
Parameter | Type |
---|---|
params | { snapshot : IWorkbookData ; type : UniverInstanceType ; unitID : string ; } |
params.snapshot | IWorkbookData |
params.type | UniverInstanceType |
params.unitID | string |
Returns
Promise
<boolean
>
Implementation of
IRemoteInstanceService
.createInstance
disposeInstance()
disposeInstance(params): Promise<boolean>
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:108
Parameters
Parameter | Type |
---|---|
params | { unitID : string ; } |
params.unitID | string |
Returns
Promise
<boolean
>
Implementation of
IRemoteInstanceService
.disposeInstance
syncMutation()
syncMutation(params): Promise<boolean>
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:79
Parameters
Parameter | Type |
---|---|
params | { mutationInfo : IMutationInfo ; } |
params.mutationInfo | IMutationInfo |
Returns
Promise
<boolean
>
Implementation of
IRemoteInstanceService
.syncMutation
whenReady()
whenReady(): Promise<true>
Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:75
Tell other modules if the IRemoteInstanceService
is ready to load files.
Returns
Promise
<true
>