# \#\_\_using\_\_

**URL:** https://forum.elixirforum.com/tag/using/1325.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [\_\_using\_\_ macro with option](https://forum.elixirforum.com/t/using-macro-with-option/50443)

<div class="topic-metadata">

**Author:** [@mruoss](https://forum.elixirforum.com/u/mruoss)\
**Replies:** 7\
**Last updated:** [September 25, 2022, 8:12am UTC](https://forum.elixirforum.com/t/using-macro-with-option/50443 "2022-09-25T08:12:09Z")

</div>

Hi community! What is the correct way to implement the \_\_using\_\_ macro with an option that changes the way generated functions behave? Or is that a no-go by itself? An example: defmodule UsedModule do defmacro \_\_usi…

---

## [Understanding \_\_using\_\_, with a practical problem](https://forum.elixirforum.com/t/understanding-using-with-a-practical-problem/50425)

<div class="topic-metadata">

**Author:** [@fabioticconi](https://forum.elixirforum.com/u/fabioticconi)\
**Replies:** 1\
**Last updated:** [September 21, 2022, 6:22pm UTC](https://forum.elixirforum.com/t/understanding-using-with-a-practical-problem/50425 "2022-09-21T18:22:36Z")

</div>

Hi all, I’m trying to solve a practical problem - make an ExUnit “data case” with async true as default, instead of false. So if a user does this: use MyTestCase Then async will be true, but if the user specifies use…

---

## [How does \_\_using\_\_ actually work?](https://forum.elixirforum.com/t/how-does-using-actually-work/19656)

<div class="topic-metadata">

**Author:** [@ar7max](https://forum.elixirforum.com/u/ar7max)\
**Replies:** 3\
**Last updated:** [January 24, 2019, 11:17pm UTC](https://forum.elixirforum.com/t/how-does-using-actually-work/19656 "2019-01-24T23:17:28Z")

</div>

I will be short: defmodule A do use B def func1 do callback = &func2/1 # then I need to send callback to another function call end # that's all, there is no definition of func2 in modul…
