Function ocl::async::ok
[−]
[src]
pub fn ok<T>(t: T) -> FutureResult<T>
Creates a "leaf future" from an immediate value of a finished and successful computation.
The returned future is similar to done
where it will immediately run a
scheduled callback with the provided value.
Examples
use ocl::async::ok; let future_of_1 = ok::<u32>(1);