Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"io"
"log"
"net"
"net/http"
"net/rpc"
"net/rpc/jsonrpc"
package main
import (
"fmt"
"time"
)
func expensiveOp() <-chan int {
fmt.Println("expensiveOp...")
time.Sleep(50000000)
case class Point(x: Double, y: Double)
case object Origin extends Point(0,0)