arontsang

Results 72 comments of arontsang

Hi Pamidur, I mean for ``` // Taken from aspect-injector/samples/UniversalWrapper/UniversalWrapper.cs [Advice(Kind.Around)] public object Handle( [Argument(Source.Target)] Func target, [Argument(Source.Arguments)] object[] args, [Argument(Source.Name)] string name, [Argument(Source.ReturnType)] Type retType ) { if (typeof(Task).IsAssignableFrom(retType))...

Come to think about it. You can still stackalloc your `object[]`. But it would make the code `unsafe`.

- You would have to allocate a ThreadLocal per method. For frameworks that spawn threads like a Java process, this could leak... - There would be nothing that prevents 'use...

For your "around", nothing stops the user from trampolining from a synchronous function that returns a Task to an async function. The only "step" they need to take before take...

I tried to contribute this feature, but unfortunately, it is a little too complicated. I found that my FieldAccessors for classes nested in a generic class failed ``` public Foo...

Here is my attempt at this. As I said before, it is failing on generics. At present, things that aren't done: 1. Name mangling, for overloads (each overload sig needs...

It would make sense for any caching layer to be implemented as a plugin system. I noticed that the RedirectHandler is the closest thing to a "plugin" in undici, and...

That isn't true. dispatch is async. It just isn't async over Promise. dispatch uses old school callbacks. On Sun, 18 Sept 2022 at 23:36, CI010 ***@***.***> wrote: > The response...

I would like to suggest the following signature for extending Dispatchers function DispatchExtender(dispatcher: Dispatcher, opts: RequestOptions, handler: DispatchHandlers): [RequestOptions, DispatchHandlers] This way, we can reduce a list of DispatchExtenders when...

At the end of the day, this is simply a proposal. I expect some back and forth before a final revision. Personally, I'm not happy with the shape of the...