Skip to content

Commit

Permalink
timed.Queue should not default to PanicOnModificationsAfterShutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Oct 9, 2023
1 parent 86973b2 commit 04d9e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/timed/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"sync"
"time"

"github.com/iotaledger/hive.go/ds/bitmask"
"github.com/iotaledger/hive.go/runtime/options"
)

Expand Down Expand Up @@ -53,7 +54,7 @@ func (t *Executor) WorkerCount() int {

// Shutdown shuts down the TimedExecutor and waits until the executor has shutdown gracefully.
func (t *Executor) Shutdown(optionalShutdownFlags ...ShutdownFlag) {
shutdownFlags := PanicOnModificationsAfterShutdown
var shutdownFlags bitmask.BitMask
for _, optionalShutdownFlag := range optionalShutdownFlags {
shutdownFlags |= optionalShutdownFlag
}
Expand Down

0 comments on commit 04d9e5b

Please sign in to comment.