title: Getting function used to create coroutine/thread in Lua
body: <p>Is it possible to get the original function used to create a coroutine ?</p>
  
  <pre><code>thread = coroutine.create(function()
     -- Code
  end)
  
  f = get_function_from_thread(thread) 
  </code></pre>