Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Populate $callers field for callback functions #397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

legoscia
Copy link
Contributor

The same way Task does it:
https://hexdocs.pm/elixir/Task.html#module-ancestor-and-caller-tracking

This makes it easier to track requests across processes.

The same way Task does it:
https://hexdocs.pm/elixir/Task.html#module-ancestor-and-caller-tracking

This makes it easier to track requests across processes.
@whitfin
Copy link
Owner

whitfin commented Jan 21, 2025

Hi @legoscia!

What exactly is your intent with this? What would you use the callers for? The issue is that the caller is not going to necessarily be a process you own; I don't want to have to commit to maintaining that contract...

Maybe some examples of how this would be useful would help me understand. Specifically I mean why you would need to track the caller of a fetch/3 call; you can just pass self() directly into it, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants