.local() method returns a local thread object with data that is specific to that thread. This data can be anything from arbitrary numbers to session-specific information like usernames.
No parameters are used in the
Data can be locally stored as a property in a specific thread, as shown in the example below:
The output would look like this:
Additionally, the object returned by
.local() can be assigned to a variable, which is then stored in memory. Any stored data can be found in the local thread’s predefined