Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Updated Awaiter.WaitUntil extension method with indefinite option #181

Merged
merged 2 commits into from
May 12, 2019

Conversation

StephenHodgson
Copy link
Contributor

XRTK - Mixed Reality Toolkit Change Request

Overview

Needed the ability to wait indefinitely.

Target of the change:

Is this enhancement for:

  • Extension

@StephenHodgson StephenHodgson added the Enhancement New feature or request label May 12, 2019
Copy link
Contributor

@SimonDarksideJ SimonDarksideJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, but do we have a use case we can document for this additional await?
Can we add that use case to each awaiter in the Summary docs

@StephenHodgson
Copy link
Contributor Author

So by default this awaiter will timeout after 10 seconds, but there may be instances when people want to wait indefinitely. I didn't want to make it indefinite by default, nor break the existing functionality.

As far as use cases? I'm not sure what you mean. Like adding example code showing it?

@SimonDarksideJ
Copy link
Contributor

More like a laymans terms example for why it might be used (guess you have one else you wouldn't have added it._

@StephenHodgson
Copy link
Contributor Author

StephenHodgson commented May 12, 2019

I'm not sure how I could simplify it anymore. Could you help?

afaik it just waits forever, although in the future I'd love to add a cancellation token of some sort as an additional argument in an overload.

@StephenHodgson StephenHodgson merged commit cc40668 into development May 12, 2019
@StephenHodgson StephenHodgson deleted the dev-wait-until-indefinite branch May 12, 2019 15:34
XRTK-Build-Bot pushed a commit that referenced this pull request May 12, 2019
* added an indefinite wait until option

* updated BaseEventSystem to use WaitUntil extension
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants