File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,13 +48,19 @@ impl BoundCallback {
48
48
}
49
49
}
50
50
51
+ /// State of the execution of the [CassFuture],
52
+ /// together with a join handle of the tokio task that is executing it.
51
53
struct CassFutureState {
52
54
value : Option < CassFutureResult > ,
53
55
err_string : Option < String > ,
54
56
callback : Option < BoundCallback > ,
55
57
join_handle : Option < JoinHandle < ( ) > > ,
56
58
}
57
59
60
+ /// The C-API representation of a future. Implemented as a wrapper around a Rust future
61
+ /// that can be awaited and has a callback mechanism. It's **eager** in a way that
62
+ /// its execution starts possibly immediately (unless the executor thread pool is nempty,
63
+ /// which is the case for the current-thread executor).
58
64
pub struct CassFuture {
59
65
state : Mutex < CassFutureState > ,
60
66
wait_for_value : Condvar ,
You can’t perform that action at this time.
0 commit comments