Skip to content

Instantly share code, notes, and snippets.

@galaktor
galaktor / gist:3654745
Created September 6, 2012 10:53
func_bench
package functest
import "testing"
import "runtime"
type Target struct {
in chan TestFunc
state int
}
@galaktor
galaktor / gist:3819481
Created October 2, 2012 14:16
how to register a class and force the container to activate an instance of T once after configuration completed
public class StartableBootstrap<T>: IStartable
{
private readonly IComponentContext _context;
public StartableBootstrap(IComponentContext context)
{
_context = context;
}
public void Start()