OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477180f
)
PromiseをFutureに変更
author
masakih
<masakih@users.sourceforge.jp>
Thu, 12 Jul 2018 12:40:45 +0000
(21:40 +0900)
committer
masakih
<masakih@users.sourceforge.jp>
Thu, 12 Jul 2018 12:40:45 +0000
(21:40 +0900)
KCD/ScreenshotListViewController.swift
patch
|
blob
|
history
diff --git
a/KCD/ScreenshotListViewController.swift
b/KCD/ScreenshotListViewController.swift
index
0ff3a08
..
127f478
100644
(file)
--- a/
KCD/ScreenshotListViewController.swift
+++ b/
KCD/ScreenshotListViewController.swift
@@
-210,12
+210,11
@@
final class ScreenshotListViewController: NSViewController {
private func reloadData() {
- Promise<[ScreenshotInformation]>()
- .complete {
-
- Result(ScreenshotLoader(self.screenshotSaveDirectoryURL).merge(screenshots: []))
+ Future<[ScreenshotInformation]> {
+
+ ScreenshotLoader(self.screenshotSaveDirectoryURL).merge(screenshots: [])
+
}
- .future
.onSuccess { screenshots in
DispatchQueue.main.async {