Skip to content

Conversation

@yim-lee
Copy link
Member

@yim-lee yim-lee commented Jun 3, 2022

Pave way for #824

self.settings.plugins.stopAll(self)
Task {
await self.settings.plugins.stopAll(self)
}
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm we may need to wait for the plugins to stop before we continue shutdown -- so shutdown must become async. We can't spin off a new task I guess as that means concurrent stoppping and shutting down

Copy link
Member Author

Choose a reason for hiding this comment

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

stop is now blocking and non-throwing.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see, then never threw before in reality even hm..

That'll work for now, thanks! May need to become async, we'll see...

@yim-lee yim-lee force-pushed the plugin-async-api branch from eef1260 to 0c7f230 Compare June 4, 2022 16:30
@ktoso ktoso merged commit e28f532 into apple:main Jun 5, 2022
@yim-lee yim-lee deleted the plugin-async-api branch June 5, 2022 03:28
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.

2 participants