270
270
defaults to <c>function</c>.</p>
271
271
<p>If <c>Module</c> is not Cover compiled, the function returns
272
272
<c>{error,{not_cover_compiled,Module}}</c>.</p>
273
<p>HINT: It is possible to issue multiple analyse_to_file commands at
307
309
<c>.beam</c> file, or in <c>../src</c> relative to that
308
310
directory. If no source code is found,
309
311
<c>,{error,no_source_code_found}</c> is returned.</p>
312
<p>HINT: It is possible to issue multiple analyse_to_file commands at
317
<name>async_analyse_to_file(Module) -> </name>
318
<name>async_analyse_to_file(Module,Options) -> </name>
319
<name>async_analyse_to_file(Module, OutFile) -> </name>
320
<name>async_analyse_to_file(Module, OutFile, Options) -> pid()</name>
321
<fsummary>Asynchronous call to analyse_to_file.</fsummary>
323
<v>Module = atom()</v>
324
<v>OutFile = string()</v>
325
<v>Options = [Option]</v>
327
<v>Error = {not_cover_compiled,Module} | {file,File,Reason} | no_source_code_found | not_main_node</v>
328
<v> File = string()</v>
329
<v> Reason = term()</v>
332
<p>This function works exactly the same way as
333
<seealso marker="#analyse_to_file-1">analyse_to_file</seealso> except
334
that it is asynchronous instead of synchronous. The spawned process
335
will link with the caller when created. If an <c>Error</c> occurs
336
while doing the cover analysis the process will crash with the same
337
error reason as <seealso marker="#analyse_to_file-1">analyse_to_file</seealso>