diskann 0.50.1

DiskANN is a fast approximate nearest neighbor search library for high dimensional data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */

/// Return a [current-thread runtime](https://docs.rs/tokio/latest/tokio/runtime/struct.Builder.html#method.new_current_thread).
///
/// This just a thin convenience wrapper around the builder interface in the linked
/// documentation.
pub(crate) fn current_thread_runtime() -> tokio::runtime::Runtime {
    tokio::runtime::Builder::new_current_thread()
        .build()
        .expect("current thread runtime initialization should succeed for tests")
}