public class BigFTest {
public static void main(String[] args) throws Throwable {
final long sleepMillis = 1500;
ExecutorService executorService = Executors.newFixedThreadPool(1);
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 characters
package fpmax | |
import scala.util.Try | |
import scala.io.StdIn.readLine | |
object App0 { | |
def main: Unit = { | |
println("What is your name?") | |
val name = readLine() |
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 characters
import scalaz._ | |
import Scalaz._ | |
import scala.concurrent.Future | |
import scalaz.std.scalaFuture._ | |
import play.api.libs.concurrent.Execution.Implicits._ | |
val f1 = (s: String) => Option("foo").point[Future] | |
def f2 = (s: String) => Option(1).point[Future] | |
type OptionTFuture[T] = OptionT[Future, T] |