# Multi-threaded producer - consumer with threads for leading data

**URL:** <https://discourse.julialang.org/t/multi-threaded-producer-consumer-with-threads-for-leading-data/30732>\
**Category:** Machine Learning\
**Tags:** question\
**Created:** [November 5, 2019, 9:02am UTC](https://discourse.julialang.org/t/multi-threaded-producer-consumer-with-threads-for-leading-data/30732 "2019-11-05T09:02:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [November 5, 2019, 10:12am UTC](https://discourse.julialang.org/t/multi-threaded-producer-consumer-with-threads-for-leading-data/30732/2 "2019-11-05T10:12:36Z")

</div>

> [@Example of Async/Distributed loading into a single shared Channel](https://discourse.julialang.org/t/example-of-async-distributed-loading-into-a-single-shared-channel/11815):
>
> I think this is a fairly common senario: You have a collection of files, and each file contains a set of records (e.g. one JSON entry per line). And you which to kinda lazily load up those records, without caring about maintaining order… Possibly you want to do something with the records like filter some of them out or transform them etc. You want to do it lazily because you maybe can’t (or don’t want to) hold all the data in memory at once, or maybe you just want to be able to test your a…

---

_[View the full topic](https://discourse.julialang.org/t/multi-threaded-producer-consumer-with-threads-for-leading-data/30732)._
