![]() ginkgo.DeferCleanup has multiple advantages: - The cleanup operation can get registered if and only if needed. - No need to return a cleanup function that the caller must invoke. - Automatically determines whether a context is needed, which will simplify the introduction of context parameters. - Ginkgo's timeline shows when it executes the cleanup operation. |
||
---|---|---|
.. | ||
network | ||
node | ||
storage | ||
imports.go | ||
OWNERS | ||
util.go |