René's URL Explorer Experiment


Title: Singleton safe getter by rascar-capac · Pull Request #119 · FishingCactus/UnityCommonCode · GitHub

Open Graph Title: Singleton safe getter by rascar-capac · Pull Request #119 · FishingCactus/UnityCommonCode

X Title: Singleton safe getter by rascar-capac · Pull Request #119 · FishingCactus/UnityCommonCode

Description: This hasn't been tested but I just wanted to have your opinion on it. TryGetInstance() can be called instead of using HasInstance before getting the instance. The main benefit is that we can actual...

Open Graph Description: This hasn't been tested but I just wanted to have your opinion on it. TryGetInstance() can be called instead of using HasInstance before getting the instance. The main benefit is that we can ac...

X Description: This hasn't been tested but I just wanted to have your opinion on it. TryGetInstance() can be called instead of using HasInstance before getting the instance. The main benefit is that we ca...

Opengraph URL: https://github.com/FishingCactus/UnityCommonCode/pull/119

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1cf48b03-0879-d7ec-e8b2-96178e3c839b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB78:53F1B:4DEBBDD:6A86AFC:698CDCF9
html-safe-nonce0f388aae13a1089c786bf02f62cdaa8fbfa9b434c21e012c8cae422c37bbb00f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjc4OjUzRjFCOjRERUJCREQ6NkE4NkFGQzo2OThDRENGOSIsInZpc2l0b3JfaWQiOiI0MzgzNjM4NDk1MzI0NTkzNDAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac77527c76fba4894f125a734a0e8d8780d60c552f13fdf00390eb136690ce0e98
hovercard-subject-tagpull_request:1926336727
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/FishingCactus/UnityCommonCode/119/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/68ade91d1e45404a08e30ee69b0dab454f78fe0e0b74c8d99ceb1d3b6e13874d/FishingCactus/UnityCommonCode/pull/119
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/68ade91d1e45404a08e30ee69b0dab454f78fe0e0b74c8d99ceb1d3b6e13874d/FishingCactus/UnityCommonCode/pull/119
og:image:altThis hasn't been tested but I just wanted to have your opinion on it. TryGetInstance() can be called instead of using HasInstance before getting the instance. The main benefit is that we can ac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerascar-capac
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/FishingCactus/UnityCommonCode git https://github.com/FishingCactus/UnityCommonCode.git
octolytics-dimension-user_id1296390
octolytics-dimension-user_loginFishingCactus
octolytics-dimension-repository_id116804035
octolytics-dimension-repository_nwoFishingCactus/UnityCommonCode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id116804035
octolytics-dimension-repository_network_root_nwoFishingCactus/UnityCommonCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FFishingCactus%2FUnityCommonCode%2Fpull%2F119
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FFishingCactus%2FUnityCommonCode%2Fpull%2F119
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=FishingCactus%2FUnityCommonCode
Reloadhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
Reloadhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
Reloadhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
FishingCactus https://patch-diff.githubusercontent.com/FishingCactus
UnityCommonCodehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FFishingCactus%2FUnityCommonCode
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FFishingCactus%2FUnityCommonCode
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2FFishingCactus%2FUnityCommonCode
Code https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode
Issues 1 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/issues
Pull requests 1 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pulls
Actions https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/actions
Security 0 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/security
Insights https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pulse
Code https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode
Issues https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/issues
Pull requests https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pulls
Actions https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/actions
Security https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/security
Insights https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FFishingCactus%2FUnityCommonCode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FFishingCactus%2FUnityCommonCode%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#issue-comment-box
rascar-capachttps://patch-diff.githubusercontent.com/rascar-capac
develophttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/tree/develop
feature/lazy_singletonhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/tree/feature/lazy_singleton
Singleton safe getter https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#top
rascar-capachttps://patch-diff.githubusercontent.com/rascar-capac
develophttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/tree/develop
feature/lazy_singletonhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/tree/feature/lazy_singleton
Conversation 4 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
Commits 4 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits
Checks 0 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/checks
Files changed 1 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/rascar-capac
rascar-capachttps://patch-diff.githubusercontent.com/rascar-capac
Jun 18, 2024https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#issue-2359677977
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://reviewable.io/reviews/FishingCactus/UnityCommonCode/119
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
rascar-capachttps://patch-diff.githubusercontent.com/rascar-capac
June 18, 2024 10:19https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#commits-pushed-bd73ecf
https://patch-diff.githubusercontent.com/rascar-capac
Remove region commentshttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/bd73ecfa82a78273f754066d0fd9753f42b97a52
bd73ecfhttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/bd73ecfa82a78273f754066d0fd9753f42b97a52
https://patch-diff.githubusercontent.com/rascar-capac
Put static field abovehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/08325ae16fa1933af03e7407c5ee196ab1815001
08325aehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/08325ae16fa1933af03e7407c5ee196ab1815001
https://patch-diff.githubusercontent.com/rascar-capac
Add Singleton.TryGetInstancehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/796dc89d565df996a6b3ae2f3c4377b3ef5b33ad
796dc89https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/796dc89d565df996a6b3ae2f3c4377b3ef5b33ad
https://patch-diff.githubusercontent.com/rascar-capac
Improve log when 2 singletons detected + make it a warninghttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/13374996245554742b4d299461c1baa798eead04
1337499https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/commits/13374996245554742b4d299461c1baa798eead04
https://patch-diff.githubusercontent.com/rascar-capac
rascar-capachttps://patch-diff.githubusercontent.com/rascar-capac
June 18, 2024 11:53https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#event-13199958647
https://patch-diff.githubusercontent.com/LouisNillusFC
LouisNillusFChttps://patch-diff.githubusercontent.com/LouisNillusFC
Jun 18, 2024 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125371999
View reviewed changes https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
LouisNillusFChttps://patch-diff.githubusercontent.com/LouisNillusFC
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125371999
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Reviewablehttps://reviewable.io/reviews/FishingCactus/UnityCommonCode/119
@rascar-capachttps://github.com/rascar-capac
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://patch-diff.githubusercontent.com/MaxDaniels
MaxDanielshttps://patch-diff.githubusercontent.com/MaxDaniels
Jun 18, 2024 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125377945
View reviewed changes https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
MaxDanielshttps://patch-diff.githubusercontent.com/MaxDaniels
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125377945
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/832d8561c666763f963895eead7310ef02f2d0647c2e36cd5a398b6f6aee372c/68747470733a2f2f72657669657761626c652e696f2f6c67746d2e706e67
Reviewablehttps://reviewable.io/reviews/FishingCactus/UnityCommonCode/119#-:-O-fIcI06hk7kqsCJzsU:bnfp4nl
@rascar-capachttps://github.com/rascar-capac
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
fishingcactus-nathan-istacehttps://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
Jun 18, 2024 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125407165
View reviewed changes https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
fishingcactus-nathan-istacehttps://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2125407165
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Reviewablehttps://reviewable.io/reviews/FishingCactus/UnityCommonCode/119
@rascar-capachttps://github.com/rascar-capac
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://patch-diff.githubusercontent.com/lucas-baran
lucas-baranhttps://patch-diff.githubusercontent.com/lucas-baran
Jun 20, 2024 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2130063779
View reviewed changes https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
lucas-baranhttps://patch-diff.githubusercontent.com/lucas-baran
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2130063779
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Reviewablehttps://reviewable.io/reviews/FishingCactus/UnityCommonCode/119
@rascar-capachttps://github.com/rascar-capac
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://patch-diff.githubusercontent.com/Skeloson
Skelosonhttps://patch-diff.githubusercontent.com/Skeloson
Jun 20, 2024 https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119#pullrequestreview-2130149935
View reviewed changes https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FFishingCactus%2FUnityCommonCode%2Fpull%2F119
https://patch-diff.githubusercontent.com/MaxDaniels
MaxDaniels https://patch-diff.githubusercontent.com/MaxDaniels
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
https://patch-diff.githubusercontent.com/lucas-baran
lucas-baran https://patch-diff.githubusercontent.com/lucas-baran
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
https://patch-diff.githubusercontent.com/Skeloson
Skeloson https://patch-diff.githubusercontent.com/Skeloson
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
https://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
fishingcactus-nathan-istace https://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
https://patch-diff.githubusercontent.com/LouisNillusFC
LouisNillusFC https://patch-diff.githubusercontent.com/LouisNillusFC
https://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119/files/13374996245554742b4d299461c1baa798eead04
Please reload this pagehttps://patch-diff.githubusercontent.com/FishingCactus/UnityCommonCode/pull/119
https://patch-diff.githubusercontent.com/rascar-capac
https://patch-diff.githubusercontent.com/MaxDaniels
https://patch-diff.githubusercontent.com/lucas-baran
https://patch-diff.githubusercontent.com/Skeloson
https://patch-diff.githubusercontent.com/fishingcactus-nathan-istace
https://patch-diff.githubusercontent.com/LouisNillusFC
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.