# How to kill thread?

**URL:** https://discourse.julialang.org/t/how-to-kill-thread/34236
**Category:** New to Julia
**Tags:** question
**Created:** [February 6, 2020, 5:25am UTC](https://discourse.julialang.org/t/how-to-kill-thread/34236 "2020-02-06T05:25:10Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Sijun](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Sijun](https://discourse.julialang.org/u/Sijun)
#### Post date: [February 6, 2020, 5:50am UTC](https://discourse.julialang.org/t/how-to-kill-thread/34236/3 "2020-02-06T05:50:54Z")

</div>

Thank you for your reply. I will give it a go as you suggest.

Actually I needed to be more specific. I am trying to do the following:

`Threads.@spawn run(pipeline(`adb shell "logcat -v time | grep onScanResult"`, io))`

Initially I discovered that `run()` was a blocking call and I could’t do anything after that. So I let a separate thread call `run()`.

I am naively expecting that if I could somehow kill the thread, then the process launched by that thread may also be killed…but this is a wrong understanding?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-kill-thread/34236)._
