The sideways stack trace

Posted by: More Whidbey stuff, on 22 Dec 2014 | View original | Bookmarked: 0 time(s)

A common pattern in asynchronous programming is the callback pattern. Libraries such as async make use of that pattern to build asynchronous versions of common control flow structures. One unfortunate possible consequence of this is strange stack traces. For instance, here is code that executes five functions serially: var functions = [ function one(done) {done();}, function two(done) {done();}, function three(done) {done();}, function four(done) {done();}, function five(done) {done();}];async.series(functions,...

Similar Posts

  • Getting and setting max zIndex with jQuery more
  • Tracing the SQL Statements Generated by Telerik OpenAccess ORM more
  • Visual Studio Tip: Debugging Hints more
  • CTP before the official release of Telerik's charts, gauges and scheduler for WPF more
  • Custom ASP.NET Page Tracing more
  • SharePoint Trace Logs and the Unified Logging Service (ULS) more
  • Show Page Load Time more
  • Protein is Good for You, part 2 (Matt Gertz) more
  • Foundations of Programming - pt 7 - Back to Basics: Memory more
  • .NET and Java Interop over Web services - using JMS! more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD