PoolFber scope
Options
BesoC
✭✭
Hi
Considering the code:
[code2=csharp]class MyClass
{
private PoolFiber _execFiber;
public MyClass()
{
_execFiber = new PoolFiber();
_execFiber.Start();
}
public void PublicOperation()
{
_execFiber.Enqueue(()=>
{
// Do some staff here
PrivateOperation();
});
}
private void PrivateOperation()
{
//Do another staff here
PrivateOperation2();
}
private void PrivateOperation2()
{
//Do another staff here
}
}[/code2]
Will PrivateOperation and PrivateOperation2 run in _execFiber?
Considering the code:
[code2=csharp]class MyClass
{
private PoolFiber _execFiber;
public MyClass()
{
_execFiber = new PoolFiber();
_execFiber.Start();
}
public void PublicOperation()
{
_execFiber.Enqueue(()=>
{
// Do some staff here
PrivateOperation();
});
}
private void PrivateOperation()
{
//Do another staff here
PrivateOperation2();
}
private void PrivateOperation2()
{
//Do another staff here
}
}[/code2]
Will PrivateOperation and PrivateOperation2 run in _execFiber?
0
Comments
-
yes0