GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inflight/opset.go at master · lytics/inflight

Expand file tree

/

opset.go

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
38 lines (32 loc) · 929 Bytes
/

opset.go

Copy path

File metadata and controls

38 lines (32 loc) · 929 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package inflight
// OpSet represents the set of Ops that have been merged in an OpQueue,
// It provides convenience functions for appending new Ops and for completing them.
type OpSet struct {
set []*Op
}
func newOpSet(op *Op) *OpSet {
return &OpSet{
set: []*Op{op},
}
}
func (os *OpSet) append(op *Op) {
os.set = append(os.set, op)
}
func (os *OpSet) Len() int {
return len(os.set)
}
// Ops get the list of ops in this set.
func (os *OpSet) Ops() []*Op {
return os.set
}
// FinishAll a convenience func that calls finish on each Op in the set, passing the
// results or error to all the Ops in the OpSet.
//
// NOTE: The call group that owns this OP will not call it's finish function until all
// Ops are complete. And one callgroup could be spread over multiple op sets or
// multiple op queues.
func (os *OpSet) FinishAll(err error, resp interface{}) {
for _, op := range os.set {
op.Finish(err, resp)
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.