Atlas › Test

TestImmediate

Exact test identity: go.temporal.io/server/common/effect/TestImmediate

Package
go.temporal.io/server/common/effect
Suite / test hierarchy
TestImmediate
Test
TestImmediate
Introduced at
immediate.go ×1 Frontier kind: Joint frontier
Covered ranges
2
Covered lines
3
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/common/effect/immediate.go 3 covered LOC · 2 ranges

Open complete file

8 // insertion. Useful in contexts where you don't actually want to delay effect
9 // application and in tests.
10 > func Immediate(ctx context.Context) Controller { return immediate{ctx} } immediate.go
11
12 > func (i immediate) OnAfterCommit(effect func(context.Context)) { effect(i) } immediate.go
13 > func (i immediate) OnAfterRollback(func(context.Context)) {}