feat: release managed service generation and contract diagnostics
This commit is contained in:
16
examples/managedService/internal/logic/demo/slow.go
Normal file
16
examples/managedService/internal/logic/demo/slow.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package demo
|
||||
|
||||
import (
|
||||
"context"
|
||||
"example.com/managed/internal/types"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (l *Logic) Slow(ctx context.Context) (*types.Receipt, error) {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil, ctx.Err()
|
||||
case <-time.After(100 * time.Millisecond):
|
||||
return &types.Receipt{Bytes: 1}, nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user