mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Question about AddStorageAndWait. #123
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jan 21, 2017).
I took reference to the example code creating a datastack like so.
However my concern is that I'm using Static.datastack everywhere to reference the datastack. Wouldn't it keep adding a Storage every single time I reference it somewhere. For example every time I would call Static.datastack.beginAsynchronous, which is called dozens of times in the lifetime of the app.
@JohnEstropia commented on GitHub (Jan 22, 2017):
This syntax uses an inline closure call to initialize the stack, which gets called once the first time it is called. I think you are confusing it with computed variables. Note the difference in the syntax: