Results 455 comments of Caleb Cushing

I have come up with this as sort of a pattern, but I still question whether it might be possible to *block* on resolve, when registering a promise (yes I...

I'd be ok with that, or maybe just some documentation. Though I can't help but wondering if maybe there's a way that a flag could be set internally for "building...

so, I wrote this... ``` export function factory(explicit?: symbol, { singleton = true, container = rootContainer() } = {}) { return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { const...

looked into the proxy thing more... it doesn't work, the more I think about this, I'm not sure it's a good idea, in our case it's me trying to support...

https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Bean.html a bean in java simply refers to any "managed object", it's a weird nomenclature but I haven't a better term off the top of my head (maybe a component),...

I would say no, because it encourages a big block of code at the top of a class, instead of a big method, the problem more or less remains, things...

hmm... I thought for sure I commented on this (maybe it's on another ticket)... I have an implementation that is satisfactory but incomplete. ``` export function factory(explicit?: symbol, { singleton...

@Xapphire13 any interest in a patch for this @factory? I've enhanced it a little bit more since I wrote this. ```ts export function factory( explicit: symbol | constructor, { singleton...

tried writing this unit test as a PR, but for some reason this doesn't compile in project... this reproduces, the child container is necessary. ```ts import { container, injectable, registry...

so, doing one scope with a container is easy, but I need to do the following a request scope a transaction scope a session scope a security scope (different from...