Skip to content

Instantly share code, notes, and snippets.

View Kureev's full-sized avatar
:octocat:
Taking a break from OSS

Alexey Kureev Kureev

:octocat:
Taking a break from OSS
View GitHub Profile
@Kureev
Kureev / ChakraProxy.h
Last active September 28, 2016 14:13
ChakraProxy
#import <Foundation/Foundation.h>
@interface ChakraProxy : NSObject
-(void)run;
@end
- (void)runJSVMThread {
[[[ChakraProxy alloc] init] run];
NSRunLoop *runloop = [NSRunLoop currentRunLoop];
while (true) {
[runloop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
}
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
_jsvmThread = [[NSThread alloc] initWithTarget:self
selector:@selector(runJSVMThread)
object:nil];
[_jsvmThread start];
}