Skip to content

Commit

Permalink
punctualTimer
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Mar 8, 2024
1 parent e750bb1 commit 3506745
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2467,10 +2467,11 @@ punctual setInterval

- Arguments:

| Parameters | Description | Type | Optional | Required | Default |
| ---------- | ------------ | ---------- | -------- | -------- | ------- |
| callback | call | `function` | - | `true` | - |
| type | version type | `number` | - | `false` | `1000` |
| Parameters | Description | Type | Optional | Required | Default |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | -------- | -------- | ------- |
| handler | A function to be executed after the timer expires. | `function` | - | `true` | - |
| delay | The time, in milliseconds that the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, the next event cycle. | `number` | - | `true` | - |
| ...args | Additional arguments which are passed through to the function specified by handler. | `any[]` | - | `false` | - |

- Returns: `void`

Expand All @@ -2484,11 +2485,7 @@ punctualTimer(printDate, 1000)
- Types:

```ts
declare function punctualTimer(
version: string,
type?: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease',
preid?: string
): string
declare function punctualTimer<T extends Function>(handler: T, delay: number, ...args: any[]): void
```

#### promiseFactory
Expand Down

0 comments on commit 3506745

Please sign in to comment.