Пример #1
0
// 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)
}
Пример #2
0
func (f future) Cancel() {
	C.fdb_future_cancel(f.ptr)
}
Пример #3
0
// 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)
}