Skip to content

Commit

Permalink
updat
Browse files Browse the repository at this point in the history
  • Loading branch information
xujihui1985 committed Oct 30, 2018
1 parent a55d351 commit cdfdcd1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions chan/future/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package main

func fa() <-chan string {
return nil
}

func fb() <-chan string {
return nil
}

func withFuture(ca, cb string) {

}

func main(){
withFuture(<-fa(), <-fb())

ca, cb := fa(), fb()
withFuture(<-ca, <-cb)
}

0 comments on commit cdfdcd1

Please sign in to comment.