Skip to content

dragonfax/goroutine-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Proof of Concept implementation of goroutines in pure ruby using Fibers (and a scheduler) instead of Threads.

A very naive implementation.

  • call $scheduler.run at the end of your script
  • the main function must be wrapped in a goroutine
  • see the examples provided.

TODO

  • Make the scheduler invisibile (no $scheduler.run)
  • Use a thread cache for the non_blocking call Threads
  • Find a real async HTTP Request API
  • Implement actual 'select' (epoll) based Select/Cases

About

Goroutine implementation in pure ruby using Fibers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages