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

Document when an API is guaranteed to be synchronous

クローズ
#7,771 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ArjunCodess がすでに取り組んでいます。

2026年9月19日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
documentation

調査の方向性

Start with the API documentation for Effect.runSync, PubSub.unbounded, Effect.catch, and Scope.addFinalizer, and compare how their synchronous behavior is currently described. Identify the conditions that guarantee synchronous completion and document those guarantees so users can assess whether runSync remains safe across minor updates.

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

説明

enhancement
What is the problem this feature would solve?

This would allow more confident use of Effect.runSync etc.

For example, if I'm interfacing with some non-effect code and just want a PubSub available synchronously (maybe in a custom HTML element constructor), I've found I can do:

import { Effect, PubSub } from 'effect';
const pubSub = Effect.runSync(PubSub.unbounded());

The question is: can I rely on this to work after a minor version update?

What is the feature you are proposing to solve the problem?

Update the API documentation to state when an Effect produced by the library is guaranteed to run synchronously and under which conditions.

For example,

  • Does PubSub.unbounded() complete synchronously?
  • Does Effect.catch(self, f) complete synchronously if self completes synchronously?
  • Does Scope.addFinalizer(self, finalizer) complete synchronously if self is not closed?

I assume the answer to these is yes, but the API documentation doesn't guarantee that, so I can't be certain that invocations of Effect.runSync won't be broken after a non-breaking effect update.

What alternatives have you considered?

No response

主要言語
TypeScript
スター
16.7k
フォーク
808
平均マージ
10時間 33分
マージ済み PR(30日)
830

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

Effect-TS/effect のほかの issue

Effect-TS/effect の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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