Last active
August 18, 2020 15:01
Revisions
-
sisoje revised this gist
Feb 1, 2019 . No changes.There are no files selected for viewing
-
sisoje revised this gist
Feb 1, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ class DeinitBlock { let onDeinit: () -> Void init(_ block: @escaping () -> Void) { onDeinit = block } deinit { -
sisoje revised this gist
Feb 1, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ public class DeinitBlock { let onDeinit: () -> Void public init(_ block: @escaping () -> Void) { onDeinit = block } deinit { onDeinit() -
sisoje revised this gist
Jan 31, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ public class DeinitBlock { let onDeinit: () -> Void public init(_ block: @escaping () -> Void) { -
sisoje renamed this gist
Jan 31, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
sisoje revised this gist
Jan 31, 2019 . 2 changed files with 1 addition and 8 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ // public class DeinitBlock { let onDeinit: () -> Void public init(_ block: @escaping () -> Void) { This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +0,0 @@ -
sisoje renamed this gist
Jan 31, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
sisoje revised this gist
Jan 31, 2019 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ extension URLSessionDataTask { func taskRunner() -> DeinitBlock { resume() return DeinitBlock { self.cancel() } } } -
sisoje created this gist
Jan 31, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ public class DeinitBlock { let onDeinit: () -> Void public init(_ block: @escaping () -> Void) { self.onDeinit = block } deinit { onDeinit() } }