/third_party/node/test/parallel/ |
H A D | test-child-process-spawn-typeerror.js | 25 const { spawn, fork, execFile } = require('child_process'); 43 spawn(invalidcmd, 'this is not an array'); 47 spawn(cmd); 48 spawn(cmd, []); 49 spawn(cmd, {}); 50 spawn(cmd, [], {}); 54 spawn(); 58 spawn(''); 63 spawn(file); 67 spawn(cm [all...] |
H A D | test-child-process-stdio.js | 25 const { spawn } = require('child_process'); 29 const child = spawn(...common.pwdCommand, { stdio: ['pipe'] }); 36 const child = spawn(...common.pwdCommand, { stdio: 'ignore' }); 44 spawn(...common.pwdCommand, options); 51 const child = spawn(...common.pwdCommand); 71 spawn(
|
H A D | test-child-process-spawnsync-kill-signal.js | 14 function spawn(killSignal, beforeSpawn) { function 33 spawn('SIG_NOT_A_REAL_SIGNAL'); 38 const child = spawn(undefined, (opts) => { 47 const child = spawn('SIGKILL', (opts) => { 58 const child = spawn(SIGKILL, (opts) => {
|
H A D | test-child-process-stdio-inherit.js | 25 const spawn = require('child_process').spawn; 33 const child = spawn(process.execPath, [__filename, 'parent']); 55 spawn('cat', [], { stdio: 'inherit' });
|
H A D | test-set-http-max-http-headers.js | 5 const { spawn } = require('child_process'); 24 const cp = spawn(process.execPath, args, { stdio: 'inherit' }); 45 const cp = spawn(process.execPath, args, { 68 const cp = spawn(process.execPath, args, { env, stdio: 'inherit' }); 80 const cp = spawn(process.execPath, args, { env, stdio: 'inherit' });
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | process.rs | 29 let handle = ylong_runtime::spawn(async { in sdv_process_output_test() 48 let handle = ylong_runtime::spawn(async { in sdv_process_status_test() 58 /// SDV test cases for `spawn()`. 62 /// 2. Use `spawn()` create a child handle 66 let handle = ylong_runtime::spawn(async { in sdv_process_spawn_test() 69 let mut child = command.spawn().unwrap(); in sdv_process_spawn_test() 86 /// 1. Create a `Command` and `spawn()`. 92 let handle = ylong_runtime::spawn(async { in sdv_process_child_stdio_test() 97 .spawn() in sdv_process_child_stdio_test() 98 .expect("Failed to spawn chil in sdv_process_child_stdio_test() [all...] |
H A D | block_on.rs | 64 runtime.spawn(async { 1 + 2 }).await.unwrap() in sdv_block_on_nest_spawn() 69 runtime.spawn(async { 1 + 2 }).await.unwrap() in sdv_block_on_nest_spawn() 81 .spawn(async { in sdv_block_on_nest_spawn_spawn_blocking() 111 .spawn(async { in sdv_block_on_nest_spawn_and_spawn() 124 .spawn(async { in sdv_block_on_nest_spawn_and_spawn() 152 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn() 154 runtime.spawn(async { 7 }).await.unwrap() in sdv_block_on_nest_spawn_nest_spawn() 159 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn() 186 .spawn(async { in sdv_block_on_nest_spawn_nest_spawn2() 188 runtime.spawn(asyn in sdv_block_on_nest_spawn_nest_spawn2() [all...] |
H A D | signal.rs | 50 let handle = ylong_runtime::spawn(async move { in sdv_signal_recv_test() 72 handles.push(ylong_runtime::spawn(async move { in sdv_signal_recv_multi_thread_test() 94 let handle = ylong_runtime::spawn(async move { in sdv_signal_poll_recv_test() 116 handles.push(ylong_runtime::spawn(async move { in sdv_signal_poll_recv_multi_thread_test() 136 let handle = ylong_runtime::spawn(async move { in sdv_signal_alarm() 151 let handle = ylong_runtime::spawn(async move { in sdv_signal_child() 166 let handle = ylong_runtime::spawn(async move { in sdv_signal_hangup() 181 let handle = ylong_runtime::spawn(async move { in sdv_signal_interrupt() 196 let handle = ylong_runtime::spawn(async move { in sdv_signal_io() 211 let handle = ylong_runtime::spawn(asyn in sdv_signal_pipe() [all...] |
H A D | async_pool.rs | 131 runtime.spawn(test_future(1)), in sdv_async_pool_001() 132 runtime.spawn(test_multi_future(1, 2)), in sdv_async_pool_001() 133 runtime.spawn(test_nested_future(1, 2)), in sdv_async_pool_001() 191 runtime.spawn(test_future(1)), in sdv_async_pool_002() 192 runtime.spawn(test_multi_future(1, 2)), in sdv_async_pool_002() 193 runtime.spawn(test_nested_future(1, 2)), in sdv_async_pool_002() 251 runtime.spawn(test_future(1)), in sdv_async_pool_003() 252 runtime.spawn(test_multi_future(1, 2)), in sdv_async_pool_003() 253 runtime.spawn(test_nested_future(1, 2)), in sdv_async_pool_003() 311 runtime.spawn(test_futur in sdv_async_pool_004() [all...] |
H A D | select.rs | 36 let handle = ylong_runtime::spawn(async { in sdv_new_select_basic() 68 let handle = ylong_runtime::spawn(async { in sdv_new_select_channel() 72 ylong_runtime::spawn(async move { in sdv_new_select_channel() 76 ylong_runtime::spawn(async move { in sdv_new_select_channel() 105 let handle = ylong_runtime::spawn(async { in sdv_new_select_biased() 158 let handle = ylong_runtime::spawn(async { in sdv_new_select_match() 197 let handle = ylong_runtime::spawn(async { in sdv_new_select_precondition() 222 let handle = ylong_runtime::spawn(async { in sdv_new_select_panic()
|
H A D | tcp_test.rs | 30 let handle = ylong_runtime::spawn(async move { in sdv_tcp_ipv6_connect() 34 let handle = ylong_runtime::spawn(async move { in sdv_tcp_ipv6_connect() 61 let handle = ylong_runtime::spawn(async { in sdv_tcp_listener_interface() 81 let handle = ylong_runtime::spawn(async move { in sdv_tcp_stream_try() 85 let handle = ylong_runtime::spawn(async move { in sdv_tcp_stream_try() 116 let handle = ylong_runtime::spawn(async move { in sdv_tcp_stream_basic() 120 let handle = ylong_runtime::spawn(async move { in sdv_tcp_stream_basic() 163 let handle = ylong_runtime::spawn(async { in sdv_tcp_stream_peek() 167 let handle = ylong_runtime::spawn(async move { in sdv_tcp_stream_peek() 191 let handle = ylong_runtime::spawn(asyn in sdv_tcp_global_runtime() [all...] |
H A D | singleton_runtime.rs | 47 let thread_handler = std::thread::spawn(move || { in sdv_concurrently_runtime_spawn_async_in_async_task() 50 handles.push(ylong_runtime::spawn(test_async_in_async(i, i + 1))); in sdv_concurrently_runtime_spawn_async_in_async_task() 65 /// through ylong_runtime::spawn. 75 let thread_handler = std::thread::spawn(move || { in sdv_concurrently_spawn_async_in_async_task() 78 handles.push(ylong_runtime::spawn(test_async_in_async(i, i + 1))); in sdv_concurrently_spawn_async_in_async_task() 103 let thread_handler = std::thread::spawn(move || { in sdv_concurrently_task_builder_spawn_async_in_async_task() 107 handles.push(task_builder.spawn(test_async_in_async(i, i + 1))); in sdv_concurrently_task_builder_spawn_async_in_async_task() 141 /// 1. Use global runtime to spawn a task. 146 let _ = ylong_runtime::block_on(ylong_runtime::spawn(async move { 1 })); in sdv_build_global_failed()
|
H A D | spawn.rs | 36 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_one_core_test() 53 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_two_core_test() 70 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_three_core_test() 87 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_four_core_test() 104 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_eight_core_test() 121 handles.push(ylong_runtime::spawn(test_future(i))); in sdv_max_core_test() 138 handles.push(ylong_runtime::spawn(test_multi_future_in_async(i, i + 1))); in sdv_multi_future_in_async() 156 handles.push(ylong_runtime::spawn(test_async_in_async(i, i + 1))); in sdv_multi_async_in_async()
|
H A D | async_buf_read.rs | 32 let server = ylong_runtime::spawn(async move { in sdv_buf_reader_read_until() 48 let client = ylong_runtime::spawn(async move { in sdv_buf_reader_read_until() 76 let server = ylong_runtime::spawn(async move { in sdv_buf_reader_read_line() 90 let client = ylong_runtime::spawn(async move { in sdv_buf_reader_read_line() 117 let server = ylong_runtime::spawn(async move { in sdv_buf_reader_split() 129 let client = ylong_runtime::spawn(async move { in sdv_buf_reader_split() 156 let server = ylong_runtime::spawn(async move { in sdv_buf_reader_lines() 177 let client = ylong_runtime::spawn(async move { in sdv_buf_reader_lines() 207 let handle = ylong_runtime::spawn(async move { in sdv_buf_reader_seek() 216 let handle1 = ylong_runtime::spawn(asyn in sdv_buf_reader_seek() [all...] |
H A D | mpsc_test.rs | 30 let handle = ylong_runtime::spawn(async move { in sdv_unbounded_send_recv_test() 50 let handle = ylong_runtime::spawn(async move { in sdv_unbounded_send_recv_drop_test() 85 let handle = ylong_runtime::spawn(async move { in sdv_unbounded_send_recv_timeout_test() 105 let handle = ylong_runtime::spawn(async move { in sdv_bounded_send_recv_test() 111 ylong_runtime::spawn(async move { in sdv_bounded_send_recv_test() 127 let handle = ylong_runtime::spawn(async move { in sdv_bounded_send_recv_drop_test() 132 ylong_runtime::spawn(async move { in sdv_bounded_send_recv_drop_test() 169 let handle = ylong_runtime::spawn(async move { in sdv_bounded_send_timeout_recv_timeout_test() 280 tasks.push(ylong_runtime::spawn(async move { in sdv_multi_send_recv_test() 285 let handle = ylong_runtime::spawn(asyn in sdv_multi_send_recv_test() [all...] |
H A D | async_buf_write.rs | 30 let server = ylong_runtime::spawn(async move { in sdv_buf_writer_write() 41 let client = ylong_runtime::spawn(async move { in sdv_buf_writer_write() 69 let server = ylong_runtime::spawn(async move { in sdv_buf_writer_write_vectored() 80 let client = ylong_runtime::spawn(async move { in sdv_buf_writer_write_vectored() 116 let handle = ylong_runtime::spawn(async move { in sdv_buf_writer_seek() 125 let handle1 = ylong_runtime::spawn(async move { in sdv_buf_writer_seek() 165 let server = ylong_runtime::spawn(async move { in sdv_buf_writer_write_vectored_2() 176 let client = ylong_runtime::spawn(async move { in sdv_buf_writer_write_vectored_2()
|
H A D | udp_test.rs | 31 let handle = ylong_runtime::spawn(async { in sdv_udp_send_recv() 69 let handle = ylong_runtime::spawn(async { in sdv_udp_send_to_recv_from() 99 let handle = ylong_runtime::spawn(async move { in sdv_udp_recv() 113 let handle = thread::spawn(move || { in sdv_udp_recv() 114 let handle = ylong_runtime::spawn(async move { in sdv_udp_recv() 143 let handle = ylong_runtime::spawn(async move { in sdv_udp_try_recv_from() 180 let handle = ylong_runtime::spawn(async move { in sdv_udp_try_send() 202 let handle = ylong_runtime::spawn(async move { in sdv_udp_try_recv() 216 thread::spawn(move || sdv_udp_try_send(connected_sender)); in sdv_udp_try_recv() 254 thread::spawn(mov in sdv_udp_block_on_try_recv() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/ |
H A D | command.rs | 51 /// * Inherit stdin/stdout/stderr for spawn or status, but create pipes for 107 /// .spawn() 126 /// .spawn() 145 /// .spawn() 175 /// .spawn() 199 /// .spawn() 218 /// .spawn() 237 /// .spawn() 246 /// Defaults to inherit when used with spawn or status, and defaults to 260 /// .spawn() 332 pub fn spawn(&mut self) -> io::Result<Child> { spawn() functions [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/ |
H A D | ylong_runtime_async_benchmark.rs | 61 let handle1 = runtime.spawn(async move { in main() 65 let handle2 = runtime.spawn(async move { in main() 69 let handle3 = runtime.spawn(async move { in main() 73 let handle4 = runtime.spawn(async move { in main() 77 let handle5 = runtime.spawn(async move { in main() 81 let handle6 = runtime.spawn(async move { in main() 85 let handle7 = runtime.spawn(async move { in main() 89 let handle8 = runtime.spawn(async move { in main() 93 let handle9 = runtime.spawn(async move { in main() 97 let handle10 = runtime.spawn(asyn in main() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/ |
H A D | ylong_tokio_rwlock.rs | 57 handlers.push(rt.spawn(tokio_rwlock_task(lock.clone()))); in tokio_rwlock_read() 74 let handle = ylong_runtime::spawn(async move {}); in ylong_rwlock_read() 82 handlers.push(ylong_runtime::spawn(ylong_rwlock_task(lock.clone()))); in ylong_rwlock_read() 106 handlers.push(rt.spawn(tokio_rwlock_write_task(lock.clone()))); in tokio_rwlock_write() 123 let handle = ylong_runtime::spawn(async move {}); in ylong_rwlock_write() 131 handlers.push(ylong_runtime::spawn(ylong_rwlock_write_task(lock.clone()))); in ylong_rwlock_write() 158 handlers.push(rt.spawn(tokio_rwlock_write_task(lock_in))); in tokio_rwlock_write_read() 163 handlers.push(rt.spawn(tokio_rwlock_task(lock_in))); in tokio_rwlock_write_read() 180 let handle = ylong_runtime::spawn(async move {}); in ylong_rwlock_write_read() 190 handlers.push(ylong_runtime::spawn(ylong_rwlock_write_tas in ylong_rwlock_write_read() [all...] |
H A D | ylong_tokio_multi_threaded.rs | 32 runtime.spawn(async move { in runtime_spawn_many() 38 runtime.spawn(async move { in runtime_yield_many() 99 runtime.spawn(async move { iter(runtime_clone, sender, n - 1) }); in chained_spawn() 111 runtime_clone.spawn(async move { iter(runtime_iter_clone, sender, TASK_NUM) }); in chained_spawn() 142 tokio::spawn(async move { iter(sender, n - 1) }); in chained_spawn() 152 tokio::spawn(async move { iter(sender, TASK_NUM) }); in chained_spawn()
|
H A D | ylong_tokio_task_creation.rs | 31 handlers.push(runtime.spawn(async move { 1 })); 47 handlers.push(ylong_runtime::spawn(async move { 1 })); 61 let handle = runtime.spawn(async move { 64 handlers.push(tokio::spawn(async move { 1 })); 80 let handle = ylong_runtime::spawn(async move { 83 handlers.push(ylong_runtime::spawn(async move { 1 }));
|
/third_party/node/deps/npm/node_modules/cross-spawn/ |
H A D | index.js | 7 function spawn(command, args, options) { function 12 const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); 15 // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 28 // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 34 module.exports = spawn; 35 module.exports.spawn = spawn;
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/signal/unix/ |
H A D | mod.rs | 51 /// let handle = ylong_runtime::spawn(async move { 88 /// let handle = ylong_runtime::spawn(async move { 110 /// let handle = ylong_runtime::spawn(async move { 132 /// let handle = ylong_runtime::spawn(async move { 154 /// let handle = ylong_runtime::spawn(async move { 176 /// let handle = ylong_runtime::spawn(async move { 198 /// let handle = ylong_runtime::spawn(async move { 220 /// let handle = ylong_runtime::spawn(async move { 242 /// let handle = ylong_runtime::spawn(async move { 264 /// let handle = ylong_runtime::spawn(asyn [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/ |
H A D | ylong_runtime_timer_sleep.rs | 21 use ylong_runtime::{block_on, spawn}; 26 let handle_one = spawn(async { in main() 31 let handle_two = spawn(async { in main() 36 let handle_three = spawn(async { in main()
|