# \#actor-model

**URL:** https://discourse.julialang.org/tag/actor-model/1410.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Help me find flaws in this pattern: spawning task from constructor](https://discourse.julialang.org/t/help-me-find-flaws-in-this-pattern-spawning-task-from-constructor/102219)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 3\
**Last updated:** [July 31, 2023, 5:06pm UTC](https://discourse.julialang.org/t/help-me-find-flaws-in-this-pattern-spawning-task-from-constructor/102219 "2023-07-31T17:06:04Z")

</div>

I hope the MWE is self-explanatory, but I’ll say a few words after the code block anyways: struct Agent id::Int in::Channel out::Channel Agent(id, in, out) = new(id, in, out) function Agent(id, in, o…
