PriceLab / STP

Code and commentary from The Self-Taught Programmer, Althoff 2016: python + R
Apache License 2.0
1 stars 0 forks source link

cytoscape html file + graph illustrating need for Promise #2

Open paul-shannon opened 6 years ago

paul-shannon commented 6 years ago

@oshah97

load the basic.html file into your browser in the js console: longRunningLayoutTask("grid") // actually happens quick longRunningLayoutTask("cose") // very slow

Use a Promise in the longRunningLayoutTask function (a few lines in the bottom of basic.html) so that the javscript console prompt > does not return until the layout is finsished