tumblr/TMCache — pull request #68 by napoapo77 (2014-10-30 19:52:31+00:00)
Title: TMDiskCache trash directory creation on the calling thread

Having the trash directory creation happening asynchronously leads to a race condition and potential crash on slower hardware.
One of my test cases run against iPhone 4 failed consistently in TMDiskCache.m line 205 with Cocoa error 4 because the temp directory was not yet created when consumed for the first time.
This is one time, quick operation and the temp directory has to be readily available when sharedTrashURL returns control on the calling thread?