sync_ls

Function just_future

Source
pub fn just_future<T, E>(
    fut: impl Future<Output = Result<T, E>> + Send + 'static,
) -> Result<ResponseFuture<Result<T, E>>, E>
Expand description

A helper function to create a LspResponseFuture