1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

more doc fixes

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-05-21 15:14:11 -04:00
parent 9506aeda38
commit 34994ce02e

View File

@ -27,10 +27,10 @@ Both `main` and `renderer` can do this sort of IPC.
This is more like a Remote Procedure Call (RPC) or Send-Receive-Reply (SRR). This is more like a Remote Procedure Call (RPC) or Send-Receive-Reply (SRR).
With this sort of communication the caller needs to wait for the result from the other side. With this sort of communication the caller needs to wait for the result from the other side.
This is accomplished by `await`-int the returned `Promise<any>`. This is accomplished by `await`-ing the returned `Promise<any>`.
This is a unidirectional form of communication. This is a unidirectional form of communication.
Only `renderer` can initiate this kind of request, and only `main` can and respond this this kind of request. Only `renderer` can initiate this kind of request, and only `main` can and respond to this kind of request.
## Registering IPC Handlers and Listeners ## Registering IPC Handlers and Listeners
@ -76,7 +76,7 @@ function onInitialize(event: Types.IpcMainEvent, id: string) {
``` ```
In other files, it is not necessary to pass around any instances. In other files, it is not necessary to pass around any instances.
It should be able to just call `IpcMain.getInstance()` anywhere it is needed in your extension. You should be able to just call `IpcMain.getInstance()` anywhere it is needed in your extension.
--- ---