Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@xylabs/timer

Package Overview
Dependencies
Maintainers
5
Versions
413
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/timer

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

latest
Source
npmnpm
Version
5.0.100
Version published
Weekly downloads
1.7K
-78.3%
Maintainers
5
Weekly downloads
 
Created
Source

@xylabs/timer

npm license

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

Install

Using npm:

npm install {{name}}

Using yarn:

yarn add {{name}}

Using pnpm:

pnpm add {{name}}

Using bun:

bun add {{name}}

License

See the LICENSE file for license rights and limitations (LGPL-3.0-only).

Reference

packages

timer

### .temp-typedoc

  ### functions

    ### <a id="clearTimeoutEx"></a>clearTimeoutEx

@xylabs/timer

function clearTimeoutEx(id): void;

Cancels a timeout previously created with setTimeoutEx.

Parameters

id

string

The timeout ID returned by setTimeoutEx.

Returns

void

    ### <a id="setTimeoutEx"></a>setTimeoutEx

@xylabs/timer

function setTimeoutEx(func, delay): string;

Sets a timeout using an optimized internal timer that coalesces multiple timeouts into a single native timer.

Parameters

func

Function

The function to call after the delay.

delay

number

The delay in milliseconds (must be >= 0).

Returns

string

A unique string ID that can be used with clearTimeoutEx to cancel the timeout.

Keywords

xylabs

FAQs

Package last updated on 22 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts