This file contains hidden or 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
"use strict"; | |
//A basic generator that iterates across four values. | |
function* simpleGenerator() { | |
yield 1; | |
yield 2; | |
yield 3; | |
return "HI THERE"; | |
} |
This file contains hidden or 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 com.vast.utils | |
import akka.actor._ | |
import akka.io.Tcp | |
import play.api.libs.iteratee._ | |
import scala.concurrent.ExecutionContext | |
import spray.http._ | |
import spray.httpx.marshalling.{MarshallingContext, Marshaller} | |
import akka.util.{ByteString, Timeout} | |
import scala.util.control.NonFatal |