Skip to content

Commit 872eac1

Browse files
committed
rm unnecessary wrapper
1 parent d7a06ea commit 872eac1

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/wr/src/select/thread.rs

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
use std::ptr;
22

3-
use futures::Future;
43
use libc::pselect;
54
use lisp_types::bindings::thread_select;
65

76
use crate::event_loop::{FdSet, Timespec};
87

9-
async fn async_thread_select(
8+
pub async fn tokio_select_fds(
109
nfds: i32,
1110
readfds: &FdSet,
1211
writefds: &FdSet,
@@ -24,15 +23,3 @@ async fn async_thread_select(
2423
)
2524
}
2625
}
27-
28-
pub fn tokio_select_fds<'a>(
29-
nfds: i32,
30-
readfds: &'a FdSet,
31-
writefds: &'a FdSet,
32-
timeout: &'a Timespec,
33-
) -> impl Future<Output = i32> + 'a {
34-
async move {
35-
let nfds: i32 = async_thread_select(nfds, readfds, writefds, timeout).await;
36-
nfds
37-
}
38-
}

0 commit comments

Comments
 (0)