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

Find the Self *PID #15

Closed
mvbaffa opened this issue Sep 16, 2016 · 2 comments
Closed

Find the Self *PID #15

mvbaffa opened this issue Sep 16, 2016 · 2 comments

Comments

@mvbaffa
Copy link

mvbaffa commented Sep 16, 2016

Sorry,

But I could not find how to get the current actor pid. I have tried with actor.Context.Self():
pid := actor.Context.Self()

but I got the error:

not enough arguments in call to method expression actor.Context.Self

But the definition of actor.Context.Self defines that it wll return *PID.

Can you help me

@rogeralsing
Copy link
Collaborator

I found the problem.
You are using actor.Context.Self() which is the fully qualified type. the argument you have access to is
context, so context.Self() is what you want.

@mvbaffa
Copy link
Author

mvbaffa commented Sep 20, 2016

It worked, Thanks

@mvbaffa mvbaffa closed this as completed Sep 20, 2016
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

No branches or pull requests

2 participants