Skip to content

docs: document when and asyncWhen options #249 - #1085

Open
AzazelSensei wants to merge 1 commit into
mobxjs:mainfrom
AzazelSensei:docs-249-when-asyncwhen-options
Open

docs: document when and asyncWhen options #249#1085
AzazelSensei wants to merge 1 commit into
mobxjs:mainfrom
AzazelSensei:docs-249-when-asyncwhen-options

Conversation

@AzazelSensei

Copy link
Copy Markdown

Fixes #249

autorun and reaction already document their optional arguments. when and asyncWhen still only showed the required ones.

I added the live signatures and the same optional-parameter list style:

  • when: name, context, timeout, onError
  • asyncWhen: name, timeout, context

timeout is milliseconds. If it fires first, when disposes and throws (or calls onError); asyncWhen fails the Future.

autorun and reaction already list their options. when and asyncWhen
were still showing only the required arguments.

Fixes mobxjs#249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update API docs to be more exhaustive

1 participant