narou icon indicating copy to clipboard operation
narou copied to clipboard

concurrency 有効時に更新後変換中断時の再変換機能が動かない

Open whiteleaf7 opened this issue 6 years ago • 1 comments

concurrency 有効時は、変換が非同期で実行されるので結果を待つことなく(成功したものとして)次に進んでいるため。 (3.3.0時点では仕様扱いとする)

update コマンドが convert の結果をみて中断かどうかを保存しているのを、convert 側で保存すれば解決するが、convert 単体で実行した場合の中断ではこの機能は無効なので、update 経由ということを認識する必要がある。 update コマンドから convert を起動するときに、convert に対してイベントを付与すればいいか。(convert.finish 的な)

whiteleaf7 avatar Sep 19 '18 02:09 whiteleaf7

Convert.execute!(..) do
  # after call
end

で後処理を呼べるようにしたのでイベントはいらない

whiteleaf7 avatar Sep 21 '18 05:09 whiteleaf7