|
Scala example source code file (TaskApp.scala)
The TaskApp.scala Scala example source codepackage scalaz package concurrent /** Safe `App` trait that runs a `scalaz.concurrent.Task` action. * * Clients should implement `run`, `runl`, or `runc`. */ trait TaskApp { def run(args: ImmutableArray[String]): Task[Unit] = runl(args.toList) def runl(args: List[String]): Task[Unit] = runc def runc: Task[Unit] = Task.now(()) final def main(args: Array[String]): Unit = run(ImmutableArray.fromArray(args)).unsafePerformSync } Other Scala examples (source code examples)Here is a short list of links related to this Scala TaskApp.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.