QVAC Logo

resume( )

Resumes all suspended Hyperswarm and Corestore resources.

function resume(): Promise<void>;

Resumes all suspended Hyperswarm and Corestore resources. Idempotent — calling while already active is a no-op. Also serves as the recovery path after a partial suspend failure.

Typically used in mobile apps when the application returns to the foreground, paired with suspend() when it moves to the background.

Parameters

None.

Returns

Promise<void>

Throws

ErrorWhen
INVALID_RESPONSE_TYPEResponse type does not match expected "resume"
LIFECYCLE_RESUME_FAILEDOne or more resources failed to resume

Example

await resume();

On this page