Pode Mutli Threaded Route - how to find which thread the code is inside? #1492
-
Hello everyone, If I start a Route with say 8 threads, is it possibly to get a numeric of which thread the current running code is on? I have a weird web service I am calling and I want to have a separate login for each thread if that is possible? Millsey |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This is part of the upcoming version 2.12. It’s already available on the develop branch, so you can try it out today. There’s also a comprehensive chapter in the documentation that discusses runspace naming. |
Beta Was this translation helpful? Give feedback.
-
Some features are already present in 2.11 https://badgerati.github.io/Pode/Getting-Started/Debug/#internal-runspace-naming |
Beta Was this translation helpful? Give feedback.
-
If all you need is just a simple numeric ID within a Route, to select different credentials depending on thread/runspace, then you can use |
Beta Was this translation helpful? Give feedback.
Yes this works, thank you so much!
Millsey