New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

task-handler

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

task-handler - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "task-handler",
"version": "1.0.5",
"version": "1.0.6",
"description": "Handle Javascript Timers in a manageable way",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -77,2 +77,36 @@ # task-handler

## Common Type Signatures
Below are a few of the common type signatures describing the values which are
used throughout the API for `task-handler`.
```js
type TaskID = string;
type TaskCancelFunction = () => boolean;
type TaskTypes =
| 'timeout'
| 'timeouts'
| 'intervals'
| 'interval'
| 'defer'
| 'defers';
type TaskID = string;
type TaskCancelFunction = () => boolean;
type WhileConditionFn = (ref: CallbackRef, ...args: Array<*>) => boolean;
type CallbackRef = {|
+task: TaskHandler,
+id: TaskID,
+cancel: TaskCancelFunction,
+while: (condition: WhileConditionFn) => void,
|};
type CallbackFn = (ref: CallbackRef, ...args: Array<*>) => mixed;
```
## API Reference

@@ -152,18 +186,1 @@

```
### `TaskRef` (Object)
```js
type TaskID = string;
type TaskCancelFunction = () => boolean;
type WhileConditionFn = (ref: CallbackRef, ...args: Array<*>) => boolean;
type CallbackRef = {|
+task: TaskHandler,
+id: TaskID,
+cancel: TaskCancelFunction,
+while: (condition: WhileConditionFn) => void,
|};
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc