Calling task inside function

In reply to manavshah33:

I am not sure if there is a separate method in System Verilog.
One way to call a task inside a function using fork - join_none

task a;
#100;
endtask

function void b();
fork
a
join_none
endfunction