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 jdbctest | |
import org.scalatest.FlatSpec | |
import org.scalatest.Matchers | |
import model.Tables | |
import model.Tables.UserRow | |
import scala.concurrent.Future | |
import scala.concurrent.Await | |
class JDBCTestSpec2 extends FlatSpec with Matchers { |
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 scala.collection.mutable.ListBuffer | |
import scala.collection.mutable.HashMap | |
case class Account(val user:String,val money:Double) | |
sealed abstract class Op | |
case class Despoit(val money:Double) extends Op |
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 laozhao | |
import java.util.concurrent.Semaphore | |
trait IBuffer { | |
def flush: Unit | |
} | |
class Item { | |
val semaphore = new Semaphore(0) |
NewerOlder