Skip to content

feat: refactor ProcessPromise internal state markers #967

@antongolub

Description

@antongolub

We use several private fields to describe the process stage, but we'd like introduce explicit state machine contract

Expose this

_halted
_piped
_output // which means that is fulfilled

via smth like

type ProcessStage = 'halted' | 'pending' | 'fulfilled' | 'rejected'

stage(): ProcessStage {
  if (this._halted) { return ... }
  // ...
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions