译者地址:[翻]Android Design Support Library 的 代码实验--几行代码,让你的 APP 变得花俏 原文:Codelab for Android Design Support Library used in I/O Rewind Bangkok session--Make your app fancy with few lines of code 原文项目 demo: Lab-Android-DesignLibrary 双语对照地址: [翻-双语]Android D
译者地址:[翻]Android Design Support Library 的 代码实验——几行代码,让你的 APP 变得花俏 原文:Codelab for Android Design Support Library used in I/O Rewind Bangkok session----Make your app fancy with few lines of code 原文项目 demo: Lab-Android-DesignLibrary 双语对照地址: [翻-双语]Android
如果采用TThreadedSelectorServer模型的话. 整个网络IO模型基本上就是 Accept Thread Group --- Selector Thread Group --- ExecutorService 假设第2层的Selector拿到一个socket,并且读取了完整的数据,会抛给ExecutorService. 这是通过 /** * Do the work required to read from a readable client. If the frame is *
doubleMe x = x + x doubleUs x y = doubleMe x + doubleMe y doubleSmallNumber x = if x>100 then x else x * 2 doubleSmallNumber' x = (if x>100 then x else x * 2) + 1 boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- x