score:0
Accepted answer
.value
returns your untransformed type. F
is a Future
in your case:
val value: F[Either[A, B]]
This means your issue should boil down to (types just for illustration):
val futures: List[Future[Either[Failure, Result]]] = group.map {m => createData(m).value}
val results: List[Either[Failure, Result]] = Await.ready(Future.sequence(futures), 10)
Source: stackoverflow.com
Related Query
- How to call Await.ready for function returning EitherT[Future,Failure,Result]
- How do i write an implicit Function conversion for a map call in Scala
- play framework - how can i call this function for the authenticated user in this code play2 scala zentasks
- Scala classOf for type parameter: how to call the function and how to restrict with upper type bounds
- How do you define a type for a function in Scala?
- How to compare Scala function values for equality
- How can I take any function as input for my Scala wrapper method?
- How can I call a function that takes 2 parameters with a Tuple2?
- scala Map.getOrElse - how to provide function for default
- EitherT: Call function returning Either only if a certain condition is true (otherwise return right)
- How to indiciate a failure for a function with a void result
- How to use Apply for Function Application
- how to call separate logic for diff file name in spark
- How to call function from hashmap in Scala
- How to rate limit function call in a loop in Scala
- scala: how to rewrite this function using for comprehension
- How to call function or module using Scala ScriptEngine
- How to pass an argument to a user defined function for mapPartitions in Spark?
- How to call a scala function from php?
- How to call constructor for leaves of a tree algebraic data type in Scala?
- How to call a function recursively when using a WHILE loop and break it properly?
- How to define a max function for every type with a method ">"?
- How to combine the same function for different types of argument in scala
- How to send Json from client with missing fields for its corresponding Case Class after using Json.format function
- How to call wildcard java function from scala
- How to call a Scala function from Play html template
- Is returning Either/Option/Try/Or considered a viable / idiomatic approach when function has preconditions for arguments?
- Strange Scala compiler error when removing a call to a function that has Unit return type, how is this even possible?
- How to call returned function with implicits without assigning to val
- How to apply a function for the first certain elements of an array in Scala?
More Query from same tag
- Set spark.driver.memory for Spark running inside a web application
- Calling main methods in other objects in Scala
- switch function and object with scalaz' |>
- Lift passing data with a Link
- Play! 2.1 / Why isn't my Jerkson dependency resolved?
- delete records from dataframe where any of the column is null or empty
- Using play framework and scala how to display image path from database
- Multiple child Actors in akka
- Spring Data Neo4j 5 - HttpMessageNotWritableException when hitting resource endpoints
- How to read a text file using Relative path in scala
- Building Scala Object, Class Not Found
- How to call super method when overriding a method through a trait
- How to get a set out of List[Array[String]] in Scala
- mapped projection with companion object in SLICK
- what are the options for hadoop on scala
- Next element from stream in Scala
- how to convert org.apache.spark.sql.DataFrame with single row and single column into an integer value
- use squeryl with Play 2
- App running under SBT doesn't find a class from Classpath jar
- Packaged jar from scala code not executing properly
- Scala: What is the difference between Traversable and Iterable traits in Scala collections?
- Reactive Mongo: Trouble For Sync Multiple Queries In Reactive Mongo
- How to create a encoder for type Iterator[org.apache.spark.sql.Row]
- ReactiveMongo conditional update
- Accessing variables in Case Classes
- Scala type inference does not work with type bounds, unless the type is specified explicitly
- How can I provide a scala companion object's class to Java?
- Why Phantom Cassandra Insert getting "main" java.lang.NoClassDefFoundError: scala/reflect/runtime/package error
- Is it possible to work with a list of generic values with different type parameters in Scala?
- Scala Nested Function - Invocation