Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NfNitLoop/pipeliner
/ functions
Functions
35 in github.com/NfNitLoop/pipeliner
⨍
Functions
35
◇
Types & classes
11
↓ 11 callers
Function
new
(builder: PipelineBuilder<I>, callable: F)
src/ordered/mod.rs:30
↓ 8 callers
Method
with_threads
(self, num_threads: usize)
src/lib.rs:64
↓ 7 callers
Method
map
Apply `callable` to items from the input Iterator and make them available via the output iterator. Note that the order of items in the output Iterato
src/lib.rs:114
↓ 3 callers
Method
clone
(&self)
src/unordered.rs:168
↓ 3 callers
Method
ordered_map
Like `map()`, but does some extra work to ensure that results in the output match the order of their inputs from the input Iterator. This requires a b
src/lib.rs:125
↓ 2 callers
Method
clone
(&self)
src/ordered/mod.rs:173
↓ 2 callers
Function
propagate_panics
Wait for all threads to close. Panics if any of them panicked.
src/unordered.rs:75
↓ 2 callers
Method
propagate_panics
Makes panics that were experienced in the worker/producer threads visible on the consumer thread. Calling this function ends output -- we will wait fo
src/unordered.rs:66
↓ 2 callers
Method
propagate_panics
(&mut self)
src/ordered/mod.rs:23
↓ 2 callers
Method
send
(&self, item: T)
src/panic_guard.rs:19
↓ 2 callers
Method
send
Sends an item, consuming the sender. Never blocks. Does not error or panic if the receiver is already closed. (You can only ever send one thing.)
src/ordered/promise.rs:21
↓ 1 callers
Method
num_threads
Set how many worker threads should be used to perform this work. A value of 0 is interpreted as 1.
src/lib.rs:94
↓ 1 callers
Function
panic_msg_from
Try to reconstruct a panic message from the original: Thanks to kimundi on #rust-beginners for helping me sort this out. :)
src/unordered.rs:91
↓ 1 callers
Method
receive
Block waiting for the value. May return an error if the sender was dropped before a value was sent.
src/ordered/promise.rs:41
↓ 1 callers
Method
result
(self)
src/unordered.rs:196
Function
basic_test
()
src/tests.rs:7
Function
basic_test_ordered
()
src/tests.rs:24
Method
drop
(&mut self)
src/panic_guard.rs:60
Function
new
Create a new promise sender/receiver for sending a single value to aonther waiting thread.
src/ordered/promise.rs:7
Method
new
(iterator: I)
src/lib.rs:85
Method
new
(sender: S)
src/panic_guard.rs:15
Method
new
(builder: PipelineBuilder<I>, callable: F)
src/unordered.rs:23
Method
next
Iterates through executor results. # Panics # Note, this call will panic if any of the worker threads panicked. This is because, in that case, you ca
src/unordered.rs:113
Method
next
Iterates through executor results. # Panics # Note, this call will panic if any of the worker threads panicked. This is because, in that case, you ca
src/ordered/mod.rs:81
Method
out_buffer
Set how many output values to cache. The default, 0, results in synchronous output. Note that in effect each thread caches its output as it waits to s
src/lib.rs:102
Function
parallel_test
()
src/tests.rs:74
Function
pipe_a
(x: i32)
src/tests.rs:92
Function
pipe_b
(x: i32)
src/tests.rs:98
Function
sending_and_receiving
(b: &mut Bencher)
benches/benchmarks.rs:14
Function
sending_and_receiving_ordered
(b: &mut Bencher)
benches/benchmarks.rs:30
Function
serial_test
()
src/tests.rs:83
Function
test_panic
()
src/tests.rs:37
Function
test_panic_ordered
()
src/tests.rs:56
Method
wrap
(iterator: I)
src/unordered.rs:156
Method
wrap
(iterator: I, chan: crossbeam_channel::Sender<promise::Receiver<Out>>)
src/ordered/mod.rs:126