jakearchibald / jakearchibald/byte-storage

Do .write and .read need to return a promise?

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
42
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Good point by @surma:

Rather than return a promise that resolves with a stream, could we return the stream immediately and error it with rejection cases?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue only identifies the .write and .read entry points; locate them and inspect their current return behavior, stream handling, and rejection cases. Clarify whether the API should return streams immediately or promises, then establish the agreed behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.