func (f *getPeersFuture) GetResult() (interface{}, error) { if err := app.ResolveFutureError(f.errorChannel); err != nil { return nil, err } peers := make([]*Peer, 0) for peer := range f.resultChannel { peers = append(peers, peer) } return peers, nil }
func (r *removePeerFuture) GetResult() (interface{}, error) { return nil, app.ResolveFutureError(r.resultChannel) }
func (f *insertPeerFuture) GetResult() (interface{}, error) { return nil, app.ResolveFutureError(f.resultChannel) }