# Actor examples and Sequences - which is 1.3 "correct"?

**URL:** <https://discuss.kotlinlang.org/t/actor-examples-and-sequences-which-is-1-3-correct/10144>\
**Category:** Uncategorized\
**Created:** [November 2, 2018, 5:33pm UTC](https://discuss.kotlinlang.org/t/actor-examples-and-sequences-which-is-1-3-correct/10144 "2018-11-02T17:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![benjaminhill](https://avatars.discourse-cdn.com/v4/letter/b/57b2e6/32.png) [@benjaminhill](https://discuss.kotlinlang.org/u/benjaminhill)\
**Post date:** [November 6, 2018, 5:55pm UTC](https://discuss.kotlinlang.org/t/actor-examples-and-sequences-which-is-1-3-correct/10144/9 "2018-11-06T17:55:09Z")

</div>

I gave up, ripped out all Channels, Sequences, and Coroutines, and went back to plain Java Thread + Blocking Queue. This makes me sad because Kotlin is usually so much more clear.

> **[GitHub - salamanders/videosmush: Timelapse of mp4 using adaptive frame blending](https://github.com/salamanders/videosmush)**
>
> Timelapse of mp4 using adaptive frame blending. Contribute to salamanders/videosmush development by creating an account on GitHub.

Reasons why:

1. Sequences were a nice way to consume frames, but ran out of memory if I tried to get fancy running in parallel.
2. So I moved to Actors + Channels, but javacv.FFmpegFrameRecorder started crashing java.
3. So I tried to do something that limited race-ahead memory usage, but Channels and Sequences are two different teams/philosophies. There aren’t good examples on how to use them together that I have been able to find.
4. Coroutine scope - I don’t quite get it yet. It appears that not all the examples have moved to best practices yet. (Some use GlobalScope but then other places say don’t use that, and I could enclose something in runBlocking, coroutineScope, suspend, produce, etc)

---

_[View the full topic](https://discuss.kotlinlang.org/t/actor-examples-and-sequences-which-is-1-3-correct/10144)._
