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 vibe.core.core; | |
import core.time; | |
import std.stdio; | |
int counter; | |
void say( string name ) { | |
for ( int i = 0 ; i < 3; i++ ) { | |
sleep( 100.msecs ); | |
writeln( ++counter , " " , name ); |
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 std.stdio; | |
import std.concurrency; | |
import std.conv; | |
import core.thread; | |
shared class Msg | |
{ | |
string value; | |
Msg next = null; | |
Tid from; |
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
/** | |
* Инкапсуляция | |
* | |
* @class Greeter1 | |
*/ | |
var Greeter1 = function(){} | |
/** | |
* Генерирует прикольное имя | |
* |
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
var userData = $jin.atom({ pull: function( ){ | |
setTimeout( function( ){ | |
userData.put({ name: 'User', time: Date.now() }) | |
}, 1000 ) | |
}}) | |
userData | |
.then( function( val ){ |
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
Содержимое удалено по требованию правообладателя. |
NewerOlder