Skip to content

Instantly share code, notes, and snippets.

public class EventListener<T> {
public typealias Listener = T -> ()
private let listener: Listener
private var calls: Int
private var active = true
internal init(calls: Int, listener: Listener) {
self.calls = calls
self.listener = listener
@paulofaria
paulofaria / a.md
Last active August 29, 2015 14:27
libmill

Now I changed the code to a much simpler one, that simplifies the problem. Whenever I pause with the debugger and p goredump() this is the result.

COROUTINE  state                                      current                                  created
------------------------------------------------------------------------------------------------------------------------
{0}        msleep()                                   /Users/paulofaria/test.c:12              <main>
{1}        RUNNING                                    ---                                      /Users/paulofaria/test.c:11

I tried it in my Linux virtual machine and the same happens. msleep() never returns.