Update AgentScheduler to implement IFluidLoadable#12491
Conversation
Instead of just the class doing so
|
If |
Reduced port of #12491 to int.2.0 release branch. This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update the interfaces, since it's not needed for the bug fix and that would not be suitable for a patch.
…oft#12495) Reduced port of microsoft#12491 to int.2.0 release branch. This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update the interfaces, since it's not needed for the bug fix and that would not be suitable for a patch.
Reduced port of #12491 to int.1.4 release branch. This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update the interfaces, since it's not needed for the bug fix and that would not be suitable for a patch.
AgentScheduler exposes handle but not via IFluidLoadable which makes it hard to access in general.
| * Agent scheduler distributes a set of tasks/variables across connected clients. | ||
| */ | ||
| export interface IAgentScheduler extends IProvideAgentScheduler, IEventProvider<IAgentSchedulerEvents> { | ||
| export interface IAgentScheduler extends IProvideAgentScheduler, IEventProvider<IAgentSchedulerEvents>, IFluidLoadable { |
There was a problem hiding this comment.
Probably would have been better to leave this off IAgentScheduler and only put it on AgentScheduler -- prior to this change the IAgentScheduler was only about usage of the scheduler and not about the data store "stuff".
With this change, it's possible that components that were only intended to be "users" of the scheduler (i.e. were passed an IAgentScheduler but not an AgentScheduler) can now pin a reference to the handle. Maybe consider moving it.
There was a problem hiding this comment.
Can you open an ADO and assign it to me?
Reduced port of #12491 to int.1.4 release branch. This adds `IFluidLoadable` member to `AgentScheduler` but doesn't update the interfaces, since it's not needed for the bug fix and that would not be suitable for a patch.
AgentScheduler exposes handle but not via IFluidLoadable which makes it hard to access in general.
Fixes AB#2251 (which links to an internal discussion in Loop codebase that exposed this gap)