Skip to content

Conversation

@ktoso
Copy link
Member

@ktoso ktoso commented Feb 20, 2020

Motivation:

It is not clear to users how to "keep the main() alive while the system is not terminated".

We have park() for that, but it was not fully doing that.

Goal, avoid people writing "sleep for 10 minutes" in example apps etc:

            try! self.client.run(for: .minutes(10)) // FIXME: How can I make this run indefinitely?

Modifications:

  • Make park do what people would expect.
  • I'd like to eventually revisit the park design, but for now this is better

Copy link
Member

@yim-lee yim-lee left a comment

Choose a reason for hiding this comment

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

TIL 👍

@erik-apple
Copy link
Contributor

Thanks for this!

@ktoso
Copy link
Member Author

ktoso commented Feb 27, 2020

Hope this helps :-)

It was always the intent, but never quite finished. Even with this some work remaining here but we'll get there :)

@ktoso ktoso merged commit 7e1ff7c into apple:master Feb 27, 2020
@ktoso ktoso added this to the 0.5.0 - Cluster Hardening milestone Feb 27, 2020
@ktoso ktoso deleted the wip-make-use-of-parking-system branch February 27, 2020 10:33
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.

3 participants