configureLinger method
Configure lingering for the given generator
, according to keepAlive
.
Implementation
void configureLinger({
required final Generator generator,
required final bool keepAlive,
}) {
if (!keepAlive) {
generator
..configDeleteBehavior(linger: true)
..destroy();
}
}