You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Flush function receives a timeout, so when it is called someone needs to provide a timeout value. By using a context of the app and propagating to Flush the operation will timeout whenever the context expires, so no explicit timeout is needed.
Motivation
This solution will remove some corner-case in the blocking operations of an application. If a long timeout is specified the application might wait for long. If the application already performs some finalisation and has an overall shutdown timeout, we would need to calculate the duration left to timeout, in order to provide to Flush.
Additional Context
The text was updated successfully, but these errors were encountered:
Summary
Currently
Flush
function receives a timeout, so when it is called someone needs to provide a timeout value. By using a context of the app and propagating toFlush
the operation will timeout whenever the context expires, so no explicit timeout is needed.Motivation
This solution will remove some corner-case in the blocking operations of an application. If a long timeout is specified the application might wait for long. If the application already performs some finalisation and has an overall shutdown timeout, we would need to calculate the duration left to timeout, in order to provide to
Flush
.Additional Context
The text was updated successfully, but these errors were encountered: