| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:948cbdfb-a51a-dab6-debd-ad97ca0c2edb |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 8738:1427E7:A7D9DD0:D9AF859:6976625E |
| html-safe-nonce | b78cc7402ba6e08bb982de79f55dc1160cb1fd08e54b65d4ed653e754dd4a0bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzM4OjE0MjdFNzpBN0Q5REQwOkQ5QUY4NTk6Njk3NjYyNUUiLCJ2aXNpdG9yX2lkIjoiMzYyNDIxNTI4MDEyNjE1NzQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0d3f0a2c01f0ac458611f449c3b0afa604773597058875fe2668c025ce7c7b33 |
| hovercard-subject-tag | repository:20823709 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/thunks/thunks |
| twitter:image | https://opengraph.githubassets.com/7cc91a99a7ee51a6f78198c4eebfcf8080e6dcc693d5f83ee8aa4d16b8d38a01/thunks/thunks |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7cc91a99a7ee51a6f78198c4eebfcf8080e6dcc693d5f83ee8aa4d16b8d38a01/thunks/thunks |
| og:image:alt | A small and magical composer for all JavaScript asynchronous. - thunks/thunks |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/thunks/thunks git https://github.com/thunks/thunks.git |
| octolytics-dimension-user_id | 9822920 |
| octolytics-dimension-user_login | thunks |
| octolytics-dimension-repository_id | 20823709 |
| octolytics-dimension-repository_nwo | thunks/thunks |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20823709 |
| octolytics-dimension-repository_network_root_nwo | thunks/thunks |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://patch-diff.githubusercontent.com/thunks/thunks#start-of-content |
|
| https://patch-diff.githubusercontent.com/ |
|
Sign in
| https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fthunks%2Fthunks |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fthunks%2Fthunks |
|
Sign up
| https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=thunks%2Fthunks |
| Reload | https://patch-diff.githubusercontent.com/thunks/thunks |
| Reload | https://patch-diff.githubusercontent.com/thunks/thunks |
| Reload | https://patch-diff.githubusercontent.com/thunks/thunks |
|
thunks
| https://patch-diff.githubusercontent.com/thunks |
| thunks | https://patch-diff.githubusercontent.com/thunks/thunks |
|
Notifications
| https://patch-diff.githubusercontent.com/login?return_to=%2Fthunks%2Fthunks |
|
Fork
41
| https://patch-diff.githubusercontent.com/login?return_to=%2Fthunks%2Fthunks |
|
Star
527
| https://patch-diff.githubusercontent.com/login?return_to=%2Fthunks%2Fthunks |
|
MIT license
| https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/LICENSE |
|
527
stars
| https://patch-diff.githubusercontent.com/thunks/thunks/stargazers |
|
41
forks
| https://patch-diff.githubusercontent.com/thunks/thunks/forks |
|
Branches
| https://patch-diff.githubusercontent.com/thunks/thunks/branches |
|
Tags
| https://patch-diff.githubusercontent.com/thunks/thunks/tags |
|
Activity
| https://patch-diff.githubusercontent.com/thunks/thunks/activity |
|
Star
| https://patch-diff.githubusercontent.com/login?return_to=%2Fthunks%2Fthunks |
|
Notifications
| https://patch-diff.githubusercontent.com/login?return_to=%2Fthunks%2Fthunks |
|
Code
| https://patch-diff.githubusercontent.com/thunks/thunks |
|
Issues
0
| https://patch-diff.githubusercontent.com/thunks/thunks/issues |
|
Pull requests
2
| https://patch-diff.githubusercontent.com/thunks/thunks/pulls |
|
Actions
| https://patch-diff.githubusercontent.com/thunks/thunks/actions |
|
Projects
0
| https://patch-diff.githubusercontent.com/thunks/thunks/projects |
|
Wiki
| https://patch-diff.githubusercontent.com/thunks/thunks/wiki |
|
Security
0
| https://patch-diff.githubusercontent.com/thunks/thunks/security |
|
Insights
| https://patch-diff.githubusercontent.com/thunks/thunks/pulse |
|
Code
| https://patch-diff.githubusercontent.com/thunks/thunks |
|
Issues
| https://patch-diff.githubusercontent.com/thunks/thunks/issues |
|
Pull requests
| https://patch-diff.githubusercontent.com/thunks/thunks/pulls |
|
Actions
| https://patch-diff.githubusercontent.com/thunks/thunks/actions |
|
Projects
| https://patch-diff.githubusercontent.com/thunks/thunks/projects |
|
Wiki
| https://patch-diff.githubusercontent.com/thunks/thunks/wiki |
|
Security
| https://patch-diff.githubusercontent.com/thunks/thunks/security |
|
Insights
| https://patch-diff.githubusercontent.com/thunks/thunks/pulse |
| Branches | https://patch-diff.githubusercontent.com/thunks/thunks/branches |
| Tags | https://patch-diff.githubusercontent.com/thunks/thunks/tags |
| https://patch-diff.githubusercontent.com/thunks/thunks/branches |
| https://patch-diff.githubusercontent.com/thunks/thunks/tags |
| 176 Commits | https://patch-diff.githubusercontent.com/thunks/thunks/commits/master/ |
| https://patch-diff.githubusercontent.com/thunks/thunks/commits/master/ |
| benchmark | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/benchmark |
| benchmark | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/benchmark |
| docs | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/docs |
| docs | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/docs |
| examples | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/examples |
| examples | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/examples |
| test | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/test |
| test | https://patch-diff.githubusercontent.com/thunks/thunks/tree/master/test |
| .gitignore | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/.gitignore |
| .gitignore | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/.gitignore |
| .travis.yml | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/.travis.yml |
| .travis.yml | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/.travis.yml |
| LICENSE | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/LICENSE |
| LICENSE | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/LICENSE |
| README.md | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/README.md |
| README.md | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/README.md |
| index.d.ts | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/index.d.ts |
| index.d.ts | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/index.d.ts |
| index.js | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/index.js |
| index.js | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/index.js |
| package-lock.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/package-lock.json |
| package-lock.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/package-lock.json |
| package.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/package.json |
| package.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/package.json |
| tsconfig.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/tsconfig.json |
| tsconfig.json | https://patch-diff.githubusercontent.com/thunks/thunks/blob/master/tsconfig.json |
| README | https://patch-diff.githubusercontent.com/thunks/thunks |
| MIT license | https://patch-diff.githubusercontent.com/thunks/thunks |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunks |
| https://npmjs.org/package/thunks |
| https://travis-ci.org/thunks/thunks |
| https://github.com/feross/standard |
| https://coveralls.io/r/thunks/thunks |
| https://npmjs.org/package/thunks |
| 中文说明 | https://github.com/thunks/thunks/blob/master/docs/api-zh.md |
| thunks 的作用域和异常处理设计 | https://github.com/thunks/thunks/blob/master/docs/scope-and-error-catch.md |
| https://patch-diff.githubusercontent.com/thunks/thunks#compatibility |
| https://patch-diff.githubusercontent.com/thunks/thunks#summary |
| thunks | https://patch-diff.githubusercontent.com/thunks/thunks#thunks |
| Compatibility | https://patch-diff.githubusercontent.com/thunks/thunks#compatibility |
| Summary | https://patch-diff.githubusercontent.com/thunks/thunks#summary |
| Implementations | https://patch-diff.githubusercontent.com/thunks/thunks#implementations |
| What is a thunk | https://patch-diff.githubusercontent.com/thunks/thunks#what-is-a-thunk |
| Demo | https://patch-diff.githubusercontent.com/thunks/thunks#demo |
| with thunk function | https://patch-diff.githubusercontent.com/thunks/thunks#with-thunk-function |
| with async function | https://patch-diff.githubusercontent.com/thunks/thunks#with-async-function |
| with generator function | https://patch-diff.githubusercontent.com/thunks/thunks#with-generator-function |
| chain, sequential, parallel | https://patch-diff.githubusercontent.com/thunks/thunks#chain-sequential-parallel |
| Installation | https://patch-diff.githubusercontent.com/thunks/thunks#installation |
| API | https://patch-diff.githubusercontent.com/thunks/thunks#api |
| thunks([scope]) | https://patch-diff.githubusercontent.com/thunks/thunks#thunksscope |
| thunks.pruneErrorStack | https://patch-diff.githubusercontent.com/thunks/thunks#thunkspruneerrorstack |
| thunks.onerror(error) | https://patch-diff.githubusercontent.com/thunks/thunks#thunksonerrorerror |
| Class thunks.Scope | https://patch-diff.githubusercontent.com/thunks/thunks#class-thunksscope |
| thunk(thunkable) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkthunkable |
| thunk.all(obj) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkallobj |
| thunk.all(thunkable1, ..., thunkableN) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkallthunkable1--thunkablen |
| thunk.seq([thunkable1, ..., thunkableN]) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkseqthunkable1--thunkablen |
| thunk.seq(thunkable1, ..., thunkableN) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkseqthunkable1--thunkablen |
| thunk.race([thunkable1, ..., thunkableN]) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkracethunkable1--thunkablen |
| thunk.race(thunkable1, ..., thunkableN) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkracethunkable1--thunkablen |
| thunk.thunkify(fn) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkthunkifyfn |
| thunk.lift(fn) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkliftfn |
| thunk.promise(thunkable) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkpromisethunkable |
| thunk.persist(thunkable) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkpersistthunkable |
| thunk.delay(delay) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkdelaydelay |
| thunk.stop([message]) | https://patch-diff.githubusercontent.com/thunks/thunks#thunkstopmessage |
| thunk.cancel() | https://patch-diff.githubusercontent.com/thunks/thunks#thunkcancel |
| TypeScript Typings | https://patch-diff.githubusercontent.com/thunks/thunks#typescript-typings |
| What functions are thunkable | https://patch-diff.githubusercontent.com/thunks/thunks#what-functions-are-thunkable |
| License | https://patch-diff.githubusercontent.com/thunks/thunks#license |
| https://patch-diff.githubusercontent.com/thunks/thunks#implementations |
| Toa | https://github.com/toajs/toa |
| T-man | https://github.com/thunks/tman |
| thunk-redis | https://github.com/thunks/thunk-redis |
| thunk-disque | https://github.com/thunks/thunk-disque |
| thunk-stream | https://github.com/thunks/thunk-stream |
| thunk-queue | https://github.com/thunks/thunk-queue |
| thunk-loop | https://github.com/thunks/thunk-loop |
| thunk-mocha | https://github.com/thunks/thunk-mocha |
| thunk-ratelimiter | https://github.com/thunks/thunk-ratelimiter |
| thunk-workers | https://github.com/thunks/thunk-workers |
| file-cache | https://github.com/thunks/file-cache |
| https://patch-diff.githubusercontent.com/thunks/thunks#what-is-a-thunk |
| ALGOL thunks in 1961 | https://web.archive.org/web/20190415165418/https://portalparts.acm.org/1070000/1064045/fm/frontmatter.pdf?ip=98.14.66.142 |
| https://patch-diff.githubusercontent.com/thunks/thunks#demo |
| https://patch-diff.githubusercontent.com/thunks/thunks#with-thunk-function |
| https://patch-diff.githubusercontent.com/thunks/thunks#with-async-function |
| https://patch-diff.githubusercontent.com/thunks/thunks#with-generator-function |
| https://patch-diff.githubusercontent.com/thunks/thunks#chain-sequential-parallel |
| https://patch-diff.githubusercontent.com/thunks/thunks#installation |
| https://patch-diff.githubusercontent.com/thunks/thunks#api |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunksscope |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkspruneerrorstack |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunksonerrorerror |
| https://patch-diff.githubusercontent.com/thunks/thunks#class-thunksscope |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkthunkable |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkallobj |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkallthunkable1--thunkablen |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkseqthunkable1--thunkablen |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkseqthunkable1--thunkablen-1 |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkracethunkable1--thunkablen |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkracethunkable1--thunkablen-1 |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkthunkifyfn |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkliftfn |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkpromisethunkable |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkpersistthunkable |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkdelaydelay |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkstopmessage |
| https://patch-diff.githubusercontent.com/thunks/thunks#thunkcancel |
| https://patch-diff.githubusercontent.com/thunks/thunks#typescript-typings |
| https://patch-diff.githubusercontent.com/thunks/thunks#what-functions-are-thunkable |
| thunkable | https://patch-diff.githubusercontent.com/thunks/thunks#thunkthunkable |
| https://patch-diff.githubusercontent.com/thunks/thunks#license |
| MIT | https://github.com/thunks/thunks/blob/master/LICENSE |
|
generator
| https://patch-diff.githubusercontent.com/topics/generator |
|
asynchronous
| https://patch-diff.githubusercontent.com/topics/asynchronous |
|
promise
| https://patch-diff.githubusercontent.com/topics/promise |
|
callback
| https://patch-diff.githubusercontent.com/topics/callback |
|
async-await
| https://patch-diff.githubusercontent.com/topics/async-await |
|
thunk
| https://patch-diff.githubusercontent.com/topics/thunk |
|
Readme
| https://patch-diff.githubusercontent.com/thunks/thunks#readme-ov-file |
|
MIT license
| https://patch-diff.githubusercontent.com/thunks/thunks#MIT-1-ov-file |
| Please reload this page | https://patch-diff.githubusercontent.com/thunks/thunks |
|
Activity | https://patch-diff.githubusercontent.com/thunks/thunks/activity |
|
Custom properties | https://patch-diff.githubusercontent.com/thunks/thunks/custom-properties |
|
527
stars | https://patch-diff.githubusercontent.com/thunks/thunks/stargazers |
|
22
watching | https://patch-diff.githubusercontent.com/thunks/thunks/watchers |
|
41
forks | https://patch-diff.githubusercontent.com/thunks/thunks/forks |
|
Report repository
| https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fthunks%2Fthunks&report=thunks+%28user%29 |
| Releases | https://patch-diff.githubusercontent.com/thunks/thunks/releases |
|
97
tags
| https://patch-diff.githubusercontent.com/thunks/thunks/tags |
| Packages
0 | https://patch-diff.githubusercontent.com/orgs/thunks/packages?repo_name=thunks |
| Used by 12.1k | https://patch-diff.githubusercontent.com/thunks/thunks/network/dependents |
|
+ 12,055
| https://patch-diff.githubusercontent.com/thunks/thunks/network/dependents |
| Contributors
9 | https://patch-diff.githubusercontent.com/thunks/thunks/graphs/contributors |
| Please reload this page | https://patch-diff.githubusercontent.com/thunks/thunks |
|
JavaScript
85.7%
| https://patch-diff.githubusercontent.com/thunks/thunks/search?l=javascript |
|
TypeScript
14.3%
| https://patch-diff.githubusercontent.com/thunks/thunks/search?l=typescript |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |