func fdb_future_block_until_ready(f *C.FDBFuture) { if C.fdb_future_is_ready(f) != 0 { return } ch := make(chan struct{}, 1) C.go_set_callback(unsafe.Pointer(f), unsafe.Pointer(&ch)) <-ch }
func fdb_future_block_until_ready(f *C.FDBFuture) { if C.fdb_future_is_ready(f) != 0 { return } m := &sync.Mutex{} m.Lock() C.go_set_callback(unsafe.Pointer(f), unsafe.Pointer(m)) m.Lock() }
func (f future) IsReady() bool { return C.fdb_future_is_ready(f.ptr) != 0 }