Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IRQをカスタマイズ可能に #817

Merged
merged 11 commits into from
Oct 24, 2024
Merged

Conversation

FineArchs
Copy link
Member

What

InterpreterのオプションにirqRateirqSleepの項目を追加します。

  • irqRateはInterpreterの定期休止が何ステップに一回起こるかを指定する数値
  • irqSleepは休止時間をミリ秒で指定する数値、または休止ごとにawaitされるPromiseを返す関数

また、Playgroundにこれらの項目を設定できるUIを追加しています。

Why

#665

Additional info (optional)

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines Coverage Δ
src/error.ts 91.93% <100.00%> (+5.57%) ⬆️
src/interpreter/index.ts 94.30% <100.00%> (+8.50%) ⬆️

... and 28 files with indirect coverage changes

@syuilo
Copy link
Collaborator

syuilo commented Oct 21, 2024

Playgroundのスクショとかあるかしら

@FineArchs
Copy link
Member Author

とりあえずvercelでデプロイしました
https://aiscript-git-irq-config-finearchs-projects.vercel.app/

src/interpreter/index.ts Show resolved Hide resolved
test/interpreter.ts Show resolved Hide resolved
test/interpreter.ts Outdated Show resolved Hide resolved
@FineArchs FineArchs merged commit 8de1e5a into aiscript-dev:master Oct 24, 2024
4 checks passed
@FineArchs FineArchs deleted the irq-config branch October 24, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants