# Julia and Concurrency

**URL:** https://discourse.julialang.org/t/julia-and-concurrency/25556
**Category:** General Usage
**Created:** [June 22, 2019, 10:10pm UTC](https://discourse.julialang.org/t/julia-and-concurrency/25556 "2019-06-22T22:10:45Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)
#### Post date: [June 25, 2019, 12:42pm UTC](https://discourse.julialang.org/t/julia-and-concurrency/25556/5 "2019-06-25T12:42:11Z")

</div>

Just to add, I believe this macro was shared in Slack as an easy way to try out the functionality:

```julia
macro par(expr)
    thunk = esc(:(()->($expr)))
    quote
        local task = Task($thunk)
        task.sticky = false
        schedule(task)
        task
    end
end

```

---

_[View the full topic](https://discourse.julialang.org/t/julia-and-concurrency/25556)._
