// Cancel cancels a future and its associated asynchronous // operation. If called before the future becomes ready, attempts to // access the future will return an error. Cancel has no effect if the // future is already ready. // // Note that even if a future is not ready, the associated // asynchronous operation may already have completed and be unable to // be cancelled. func (f *futureKey) Cancel() { C.fdb_future_cancel(f.ptr) }
func (f future) Cancel() { C.fdb_future_cancel(f.ptr) }
// Cancel cancels a future and its associated asynchronous operation. If called // before the future becomes ready, attempts to access the future will return an // error. Cancel has no effect if the future is already ready. // // Note that even if a future is not ready, the associated asynchronous // operation may already have completed and be unable to be cancelled. func (f *futureValue) Cancel() { C.fdb_future_cancel(f.ptr) }