Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Integrate with async_hooks

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, typescript

調査の方向性

まず、既存の jumpgen API と Node.js の async_hooks ドキュメント、特に AsyncLocalStorage を読んでください。提案されている jumpgen/async_hooks インポートで API をどのように公開すべきか、またジェネレーターの外部にある関数がそのコンテキストにどのようにアクセスするのかを判断してください。明示的なコンテキストの受け渡しなしで、統合が記載された両方の利点をサポートすれば完了です。

索引モデルが issue の本文から書いたものです。

説明

idea (not planned)

By taking advantage of the async_hooks API, users of jumpgen would be able to import the API from jumpgen/async_hooks instead of destructuring or passing around the context object within the generator.

There are two benefits I see to using async_hooks (more specifically, AsyncLocalStorage).

  1. Import auto-completion in IDEs
  2. Allow functions declared outside the generator to use jumpgen APIs, without having to pass it as an explicit argument
主要言語
TypeScript
スター
22
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alloc/jumpgen のほかの issue

alloc/jumpgen の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。