We also accept the discard name '_' in our code.
Did you try
Code: Select all
self:Post( { _ => self:done := true }, null )
Code: Select all
self:Post( { _ => self:done := true }, null )
Code: Select all
synch.Post(async _ =>
{
try
{
await task();
}
catch (Exception e)
{
synch.InnerException = e;
throw;
}
finally
{
synch.EndMessageLoop();
}
}, null);
Code: Select all
synch:Post( { _ =>
try
await task()
catch e as Exception
synch.InnerException := e
throw
finally
synch:EndMessageLoop()
end try
}, null )
Code: Select all
synch:Post( { async _ =>
try
Code: Select all
error XS9002: Parser: unexpected input '_'
Code: Select all
synch:Post( async delegate(_ as object) {
try
await task()
catch e as Exception
synch.InnerException := e
throw
finally
synch:EndMessageLoop()
end try
}, null )