@angular/platform-webworker

入口点

主要

@angular/platform-webworker

导出列表

FnArg
UiArguments
MessageBus

Message Bus is a low level API used to communicate between the UI and the background. Communication is based on a channel abstraction. Messages published in a given channel to one MessageBusSink are received on the same channel by the corresponding MessageBusSource.

WorkerAppModule

The ng module for the worker app side.

函数

bootstrapWorkerUi

Bootstraps the worker ui.

结构

ClientMessageBroker
ClientMessageBrokerFactory
MessageBusSink
MessageBusSource
SerializerTypes
ReceivedMessage
ServiceMessageBroker

Helper class for UIComponents that allows components to register methods. If a registered method message is received from the broker on the worker, the UIMessageBroker deserializes its arguments and calls the registered method. If that method returns a promise, the UIMessageBroker returns the result to the worker.

ServiceMessageBrokerFactory

类型

WORKER_UI_LOCATION_PROVIDERS

A list of Providers. To use the router in a Worker enabled application you must include these providers when setting up the render thread.

WORKER_APP_LOCATION_PROVIDERS

The PlatformLocationproviders that should be added when the Locationis used in a worker context.

platformWorkerApp
platformWorkerUi