- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type Fetcher interface { | |
| // Fetch returns the body of URL and | |
| // a slice of URLs found on that page. |
| void validateConnection(KeeperState sate, bool fromCodeToState) { | |
| ... | |
| else if (state == Watcher.Event.KeeperState.Expired) | |
| { | |
| if (fromCodeToState && client.isConnected()) | |
| // ignore | |
| else | |
| // fire a LOST as it is now |
[Scala Stream Hygiene I: Avoiding Memory Leaks] (http://blog.dmitryleskov.com/programming/scala/stream-hygiene-i-avoiding-memory-leaks/)
[Scala Stream Hygiene II: HotSpot Kicks In] (http://blog.dmitryleskov.com/programming/scala/stream-hygiene-ii-hotspot-kicks-in/)
[Scala Stream Hygiene III: Scalaz EphemeralStream Fills Quite A Canyon] (http://blog.dmitryleskov.com/programming/scala/stream-hygiene-iii-scalaz-ephemeralstream-fills-quite-a-canyon/)
Package Object