-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#66501] linux-client: goroutine-safe
getDeviceToken
method
This commit adds a mutexed method for fetching a valid device token that can be used instead of directly accessing the `deviceToken` field of the `Device` structure. This allows for multiple independent goroutines to get a valid device token safely.
- Loading branch information
Kacper Zienkiewicz
committed
Oct 3, 2024
1 parent
2f065ec
commit 7de58e3
Showing
2 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters