Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: delay() api #24

Merged
merged 3 commits into from
Feb 2, 2023
Merged

feat: delay() api #24

merged 3 commits into from
Feb 2, 2023

Conversation

charlypoly
Copy link
Contributor

@charlypoly charlypoly commented Feb 2, 2023

Introduce a new API to delay an execution:

import { delay } from "@defer.run/client"
import { helloWorld } from '../defer/helloWorld';

// create a delayed execution
const delayedHelloWorld = delay(helloWorld, '1h')

delayedHelloWorld() // background execution in 1 hour

  • QA
  • fix typings
  • add tests

@charlypoly charlypoly self-assigned this Feb 2, 2023
@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2023

🦋 Changeset detected

Latest commit: 8b808f3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@defer.run/client Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@defer.run/client 0.4.0-alpha-20230202160436-6b03524 npm ↗︎ unpkg ↗︎

@charlypoly charlypoly marked this pull request as ready for review February 2, 2023 16:05
@charlypoly charlypoly merged commit 4449796 into master Feb 2, 2023
@github-actions github-actions bot mentioned this pull request Feb 2, 2023
@gearnode gearnode deleted the feat/delay-new-api branch February 13, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant