diff --git a/README.md b/README.md index cee387059..88721beaa 100644 --- a/README.md +++ b/README.md @@ -153,13 +153,13 @@ val fetch = Fetch.from(repositories, Cache.fetch()) Then run the resolution per-se, ```scala -val resolution = start.process.run(fetch).run +val resolution = start.process.run(fetch).unsafePerformSync ``` That will fetch and use metadata. Check for errors in ```scala -val errors: Seq[(Dependency, Seq[String])] = resolution.errors +val errors: Seq[((Module, String), Seq[String])] = resolution.metadataErrors ``` These would mean that the resolution wasn't able to get metadata about some dependencies. @@ -171,7 +171,7 @@ import scalaz.concurrent.Task val localArtifacts: Seq[FileError \/ File] = Task.gatherUnordered( resolution.artifacts.map(Cache.file(_).run) -).run +).unsafePerformSync ``` @@ -503,7 +503,7 @@ resolution is particularly complex, in which case `maxIterations` could be incre Let's run the whole resolution, ```scala -val resolution = start.process.run(fetch).run +val resolution = start.process.run(fetch).unsafePerformSync ``` To get additional feedback during the resolution, we can give the `Cache.default` method above @@ -514,7 +514,7 @@ you can supply your own thread pool to `Cache.default`. Now that the resolution is done, we can check for errors in ```scala -val errors: Seq[(Dependency, Seq[String])] = resolution.errors +val errors: Seq[((Module, String), Seq[String])] = resolution.metadataErrors ``` These would mean that the resolution wasn't able to get metadata about some dependencies. @@ -532,7 +532,7 @@ import scalaz.concurrent.Task val localArtifacts: Seq[FileError \/ File] = Task.gatherUnordered( resolution.artifacts.map(Cache.file(_).run) -).run +).unsafePerformSync ``` We're using the `Cache.file` method, that can also be given a `Logger` (for more feedback) and a custom thread pool. diff --git a/doc/README.md b/doc/README.md index 10056e2d9..4c4387cbd 100644 --- a/doc/README.md +++ b/doc/README.md @@ -180,13 +180,13 @@ val fetch = Fetch.from(repositories, Cache.fetch()) Then run the resolution per-se, ```tut:silent -val resolution = start.process.run(fetch).run +val resolution = start.process.run(fetch).unsafePerformSync ``` That will fetch and use metadata. Check for errors in ```tut:silent -val errors: Seq[(Dependency, Seq[String])] = resolution.errors +val errors: Seq[((Module, String), Seq[String])] = resolution.metadataErrors ``` These would mean that the resolution wasn't able to get metadata about some dependencies. @@ -198,7 +198,7 @@ import scalaz.concurrent.Task val localArtifacts: Seq[FileError \/ File] = Task.gatherUnordered( resolution.artifacts.map(Cache.file(_).run) -).run +).unsafePerformSync ``` @@ -530,7 +530,7 @@ resolution is particularly complex, in which case `maxIterations` could be incre Let's run the whole resolution, ```tut:silent -val resolution = start.process.run(fetch).run +val resolution = start.process.run(fetch).unsafePerformSync ``` To get additional feedback during the resolution, we can give the `Cache.default` method above @@ -541,7 +541,7 @@ you can supply your own thread pool to `Cache.default`. Now that the resolution is done, we can check for errors in ```tut:silent -val errors: Seq[(Dependency, Seq[String])] = resolution.errors +val errors: Seq[((Module, String), Seq[String])] = resolution.metadataErrors ``` These would mean that the resolution wasn't able to get metadata about some dependencies. @@ -559,7 +559,7 @@ import scalaz.concurrent.Task val localArtifacts: Seq[FileError \/ File] = Task.gatherUnordered( resolution.artifacts.map(Cache.file(_).run) -).run +).unsafePerformSync ``` We're using the `Cache.file` method, that can also be given a `Logger` (for more feedback) and a custom thread pool.