Skip to content

cover the allowed call sequences on Subscriber in a spec rule #202

Closed
@rkuhn

Description

@rkuhn

Currently it is only implicit that legal sequences start with onError or onSubscribe and end with onComplete or onError (or not at all), and it is not regulated within the spec rules that onComplete is illegal before onSubscribe.

I see two ways to approach this:

  • we leave the protocol sequence definition outside of the spec and add the missing rule about onComplete
  • we make the sequence definition explicit within the rules

The second approach would lead to duplication, since legal sequence grammars are almost perfectly constrained already, so I am leaning towards adding a new rule that orders onComplete and onSubscribe.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions