nessos / Streams

A lightweight F#/C# library for efficient functional-style pipelines on streams of data.
http://nessos.github.io/Streams/
Other
382 stars 46 forks source link

Enable controlling # of threads #7

Closed adamchester closed 9 years ago

adamchester commented 9 years ago

As per this short twitter conversation, it would be nice to have the ability to control the number of threads used by ParStream.

As was suggested on twitter, something like this would seem to be the way to go:

ParStream.withDegreeOfParallelism : ParStream<'T> -> int -> ParStream<'T>
palladin commented 9 years ago

Implemented in https://github.com/nessos/Streams/commit/57648b98a016131fd0b9f3de0d985182e85af51e