Skip to content

TimeLimit.timeLimit immediately throws exception on Windows #320

@MartinAskestad

Description

@MartinAskestad

Version

110.99.5 (Latest)

Operating System

  • Any
  • Linux
  • macOS
  • Windows
  • Other Unix

OS Version

Windows 11

Processor

  • Any
  • Arm (using Rosetta)
  • PowerPC
  • Sparc
  • x86 (32-bit)
  • x86-64 (64-bit)
  • Other

System Component

SML/NJ Library

Severity

Minor

Description

In the Repl when running TimeLimit.timeLimit (Time.fromSeconds 60) calculation () the TimeOut exception is thrown immediately. But by running the code once more, it behaves as expected. This appears to only occur on Windows, if running on Linux I can't reproduce the error.

Transcript

No response

Expected Behavior

The exception should not be thrown if calculations complete withing the time limit.

Steps to Reproduce

Run a functon wrapped in the timeLimit function in the Repl on Windows.
TimeLimit.timeLimit (Time.fromSeconds 60) calculation ()

Additional Information

No response

Email address

m at rtin dot nu

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixed-in-110.99.6issues that will be fixed in the 110.99.6 versionsmlnj-libGeneral issue with the SML/NJ Library or the Util componentwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions