func (f *Future) wait(ctx context.Context) Entry {
	// Allow canceling from the context
	select {
	case result := <-f.result:
		return result

	case <-ctx.Done():
		return Entry{
			Error: ctx.Err(),
		}
	}
}
// wait is the internal implementation of waiting on the future.
wait is the internal implementation of waiting on the future.
// wait is the internal implementation of waiting on the future .
func (f *Future) wait(ctx context.Context) Entry {
	select {
	case result := <-f.result:
		return result
	case <-ctx.Done():
		return Entry{
			Error: ctx.Err(),
		}
	}
}
func ( f * Future ) wait ( ctx context . Context ) Entry { select { case result := <- f . result : return result case <- ctx . Done ( ) : return Entry { Error : ctx . Err ( ) , } } }
wait is the internal implementation of waiting on the future.
wait is the internal implementation of waiting on the future .
// Allow canceling from the context