I mostly use jobs together with the entities package. And i often run into cases where i wanna acess managed classes from within jobs. Sometimes from within multithreaded jobs, but mostly from single threaded jobs ( IJobEntityBatch… ).
However, this is NOT possible. I can understand that the devs permit managed types in scheduled or parallel jobs… however i can NOT understand why this is the case for jobs being executed on the mainthread.
Furthermore it should be our responsibility, those restrictions feel like some sort of child security system. But most of us have enough experience to know what to do and when it makes sense to acess managed types or when it may create race conditions. We arent children anymore. Of course burst also plays a roll here, but not everyone uses burst aswell.
Of course we can pin managed types and pass their pointer to our jobs, but this is additional work and doesnt always work ( looking at you generic delegates ! ).
It would be great if there would be some sort of attribute, tag or whatever to allow jobs to contain managed types directly. Give us back our responsibility !