Calling task inside function

In reply to prachi01:

In reply to naveensv:
I’m not able to call task from function using fork/join_none.
function_calling_task - EDA Playground
Could someone help to explain why I don’t see display statement. I will appreciate the help.


module test;
task xyz;
#100;
$display(“I’m in xyz\n”);
endtask
function void b;
fork
xyz;
join_none
endfunction
// put these lines
initial begin
b;
end
endmodule