mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-17 04:48:58 +03:00
7df34aa7a4
One issue remaining is that writing the cache takes significant time, but I don't know how to reflect that nicely to the user.
12 lines
298 B
Go
12 lines
298 B
Go
package entity
|
|
|
|
type StreamedEntity[EntityT Interface] struct {
|
|
Err error
|
|
Entity EntityT
|
|
|
|
// CurrentEntity is the index of the current entity being streamed, to express progress.
|
|
CurrentEntity int64
|
|
// TotalEntities is the total count of expected entities, if known.
|
|
TotalEntities int64
|
|
}
|