Skip to content

Commit

Permalink
Fix game storage not switching back to main thread correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvinas01 committed Oct 16, 2023
1 parent 343a565 commit 328c3e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Packages/com.chark.game-management/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.0.3](https://github.com/chark/game-management/compare/v0.0.2...v0.0.3) - 2023-XX-XX

### Fixed

- `GameStorage.GetValueAsync` not switching back to main thread when no value is found.

## [v0.0.2](https://github.com/chark/game-management/compare/v0.0.1...v0.0.2) - 2023-10-06

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public async Task<TValue> GetValueAsync<TValue>(string key)
return value;
}

await UniTask.SwitchToMainThread();

return default;
}

Expand Down

0 comments on commit 328c3e2

Please sign in to comment.