Skip to main content
This package has been archived, and as such it is read-only.
This release is 1 version behind 24.6.2 — the latest version of @rivet-gg/actor. Jump to latest

🔩 Rivet Actors have built-in RPC, state, and events — the easiest way to build modern applications.

This package works with Deno
This package works with Deno
JSR Score
88%
Published
2 months ago (24.6.1-rc.2)
method Actor.prototype._runInBackground
Actor.prototype._runInBackground(promise: Promise<void>): void

Runs a promise in the background.

This allows the actor runtime to ensure that a promise completes while returning from an RPC request early.

Parameters

promise: Promise<void>
  • The promise to run in the background.

Return Type

void

Add Package

deno add jsr:@rivet-gg/actor

Import symbol

import { Actor } from "@rivet-gg/actor";

---- OR ----

Import directly with a jsr specifier

import { Actor } from "jsr:@rivet-gg/actor";