Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async void test(){
- string foo = "somestring";
- ThreadFunc<void*> run = () => {
- stdout.printf("Value: %s\n", foo);
- return null;
- };
- Thread.create<void*>(run, false);
- }
- void main(string[] args){
- test.begin();
- MainLoop l = new MainLoop();
- l.run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement