-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add connect()
and disconnect()
to IFluidContainer
and FluidContainer
#9947
Add connect()
and disconnect()
to IFluidContainer
and FluidContainer
#9947
Conversation
* {@inheritDoc IFluidContainer.connect} | ||
*/ | ||
public async connect(): Promise<void> { | ||
return this.container.connect?.(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syntax here isn't great. The alternative would be to wait to make these changes once connect()
/disconnect()
are made mandatory on IContainer
. However, I felt it made sense to make the functions mandatory for both IContainer
and IFluidContainer
in a separate future PR (since they are breaking changes), and then update the syntax here after.
"broken": {} | ||
"broken": { | ||
"ClassDeclaration_FluidContainer": { | ||
"forwardCompat": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@heliocliu, I believe this situation is similar to the one in my last PR here. Thoughts on if this is okay to stay in main, or if this PR should be in next?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be fine in main (since i don't think there are any runtime object compatibility considerations here)
…tainer` (#9947) Add `connect()` and `disconnect()` to `IFluidContainer` and `FluidContainer`. These functions will be made optional on `IFluidContainer` to avoid a breaking change. In a future release these will be made mandatory functions.
Add
connect()
anddisconnect()
toIFluidContainer
andFluidContainer
. These functions will be made optional onIFluidContainer
to avoid a breaking change. In a future release these will be made mandatory functions.Closes #9745