UNPKG

@rbxts/zircon

Version:

<div> <img src="https://i.imgur.com/YgpbX7G.png" align="left" width="128"/> <h1>ZIRCON</h1> <h3>A clean, sleek, runtime debugging console for Roblox</h3> <a href="https://npmjs.com/package/@rbxts/zircon"><img src="https://badge.fury.io

38 lines (37 loc) 1.04 kB
/// <reference types="@rbxts/compiler-types" /> /// <reference types="@rbxts/types" /> export declare function fspawn(fn: () => void): void; /** * Delays execution for a set amount of time * * ```ts * // Example usage: * delayAsync(10).then(() => { * print("Waited 10 seconds to execute this!"); * }); * ``` * * You can also do * * ```ts * await delayAsync(10); * print("Waited 10 seconds!"); * ``` * * ---- * This can also be cancelled. * * @param timeout The timeout * @param useRenderStepped To use renderStepped - for plugins iirc? */ export default function delayAsync(timeout?: number, useRenderStepped?: boolean): Promise<[ number, number ]>; export declare function waitUntilDescendantOfGame(instance: Instance): Promise<Instance>; /** * Replacement for `game.Debris:AddItem(x)`. * @param instance The instance to destroy * @param seconds The time to destroy it in */ export declare function destroyAsync(instance: Instance, seconds?: number): Promise<void>;