You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a lazily-initialised singleton that will be destructed on exit; but we can't have static locals in Swift. So how would I create a singleton which has some external resources (e.g. temporary files) and cleans them up properly on exit?
Environment
Swift 5d21c2a
Additional Detail from JIRA
md5: 87c3da070e6443586ce467201d6d37fc
Issue Description:
Output:
Expected Output:
Basically I would expect that, at the end of the program, the singleton's deinit would be called. Am I wrong to expect that?
The text was updated successfully, but these errors were encountered: