@pumpkin-plugins/plugin-kit API / wasi-socket / settle
Function: settle()
settle<
T>(step):T
Defined in: tools/plugin-kit/src/wasi-socket.ts:20
Runs a socket step, such as finishBind or finishListen, again while the host reports would-block, which start/finish pairs may do while the host works.
Type Parameters
T
T
Parameters
step
() => T
The step to run.
Returns
T
What the step returned once it settled.
Throws
The step's error when it isn't would-block, or the last would-block after 100 attempts.